summaryrefslogtreecommitdiffstats
path: root/main/mc/APKBUILD
blob: ec55a4bcbe8d2ac195526e95833fa50842141144 (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.11
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="7262788c0e799393cd37318b43a14adc  mc-4.8.11.tar.bz2"
sha256sums="0e0a4e7a8bab388fa7acf524d9fef9b5f9fd2a42bced93550d890c986e3655fa  mc-4.8.11.tar.bz2"
sha512sums="d36308b88f587f80d51728cd9c6f35237156a32af85a4f915ba1d4689acfb560183a788261137ef59893bb9ce01e4a6f41c7d3c20f0937c3b0d1423b0a3e1872  mc-4.8.11.tar.bz2"