### this file is sourced not run
PKGVER=4.8.11
PKGBUILD=1
PKGARCH=x86_64

# BLFS 7.5 modified
TARBALL=mc-4.8.11.tar.xz
MD5SUM=1a2d74b75ddbff0b0d6cdc04bf4a7d31 
SRC_URL=http://ftp.midnight-commander.org/$TARBALL
BUNDLE=

SLACKREQ='glib libpcre aspell libncurses gpm libssh2'
SLACKDESC='mc: mc 4.8.11 (Console file manager)  
mc:  
mc: MC (Midnight Commander) is a text-mode full-screen file manager and visual 
mc: shell. It provides a clear, user-friendly, and somewhat protected 
mc: interface to a Unix system while making many frequent file operations more 
mc: efficient and preserving the full power of the command prompt.  
mc: 
mc: 
mc: 
mc: 
mc: 
'
SLACKSUG='zip unzip'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/mc* &&
	patch -Np1 -i $CHROOT_DIR/tmp/pkg/mc-4.8.11-ncurses.patch
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static --enable-aspell \
	--with-screen=ncurses --enable-charset"
	pkg_build_autoconf &&
	pkg_build_slackdesc
}


