summaryrefslogtreecommitdiffstats
path: root/main/mc/APKBUILD
blob: 9c6127cc61d255ea4e3ce13f7ace6305c3c37802 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mc
pkgver=4.7.0.8
pkgrel=0
pkgdesc="A filemanager/shell that emulates Norton Commander"
url="http://www.ibiblio.org/mc/"
license="GPL"
depends=""
makedepends="e2fsprogs-dev glib-dev pcre-dev slang-dev"
source="http://www.midnight-commander.org/downloads/mc-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	./configure --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="f05be872a7c272e8ad682cb51a1c5c5f  mc-4.7.0.8.tar.bz2"