summaryrefslogtreecommitdiffstats
path: root/main/mc/APKBUILD
blob: be5a2e40ca876a7eee8e02d1b5b7eb67e31d9648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mc
pkgver=4.8.12
pkgrel=0
pkgdesc="A filemanager/shell that emulates Norton Commander"
url="http://www.ibiblio.org/mc/"
arch="all"
license="GPL3+"
depends=""
subpackages="$pkgname-doc $pkgname-lang"
makedepends="e2fsprogs-dev glib-dev pcre-dev slang-dev"
source="http://www.midnight-commander.org/downloads/mc-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
}
build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libexecdir=/usr/lib \
		--mandir=/usr/share/man \
		--sysconfdir=/etc \
		--enable-background \
		--enable-charset \
		--enable-largefile \
		--with-edit \
		--with-mmap \
		--with-screen=slang \
		--with-subshell \
		--with-vfs \
		--without-debug \
		--without-gnome \
		--without-gpm-mouse \
		--without-included-gettext \
		--without-samba \
		--without-x \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="a64c426364bfaee56b628f6c0738aade  mc-4.8.12.tar.bz2"
sha256sums="1054fcc27a488771cbe5b85d7c10135fa1cd1b7682a19930d44b51a023e39396  mc-4.8.12.tar.bz2"
sha512sums="ee9eb2da59f1ed1ce0a308b399216d33f12dc56c2bcb42d32f5662b993f78f24b3f6d273a75a5bbcac0c5cd9c2ab9996ef6b09558a198aa5967d04e2aaa02351  mc-4.8.12.tar.bz2"