aboutsummaryrefslogtreecommitdiffstats
path: root/main/mc/APKBUILD
blob: 6e41d18b2798b16ea2a8b5d2a1cf072460385988 (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
54
55
56
57
58
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mc
pkgver=4.8.15
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 ncurses-dev"
source="http://www.midnight-commander.org/downloads/mc-$pkgver.tar.bz2"

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

prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
			*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}
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=ncurses \
		--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="db48ce26ba425a61edc51930e94227fd  mc-4.8.15.tar.bz2"
sha256sums="f74e3da70410975cdeb27ee9a66d1dd812250b6d3ede364bca728dd5a48e5471  mc-4.8.15.tar.bz2"
sha512sums="d5eb35d5ca25cb5b19d512adc15f11d23035b59c68977a08bdacadc39a3d49cc9c9fe659fd4ca0bb17f8ab7e0b71574cbaac9dbc1935f64f0534a28d60eaffe1  mc-4.8.15.tar.bz2"