# Maintainer: Natanael Copa pkgname=mc pkgver=4.8.14 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="fe1cb75643c2bd4df64bbcf2dab76905 mc-4.8.14.tar.bz2" sha256sums="61fd0fd2280c3d09d7e0aec8ab001fc89dad8e4fd9941f386414667b55152ec5 mc-4.8.14.tar.bz2" sha512sums="69e1e48e7545b75cdfbcf24f5ade72c8ce92ad3d1410a91b847720dae2b7d5405f2f187337279da592482d0cc3dd2e1883ebd37b0b7ce0389a7821171a814b9a mc-4.8.14.tar.bz2"