# Template file for 'mc'
pkgname=mc
version=4.8.8
revision=1
build_style=gnu-configure
configure_args="--with-screen=ncurses --without-x"
hostmakedepends="pkg-config perl"
makedepends="libglib-devel e2fsprogs-devel ncurses-devel libssh2-devel"
short_desc="User-friendly file manager and visual shell"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.ibiblio.org/mc/"
#distfiles="http://www.midnight-commander.org/downloads/mc-${version}.tar.xz"
distfiles="http://fossies.org/linux/misc/mc-${version}.tar.gz"
checksum=a53d8ecebba9112ffbd2bf502f0f8c358bafcd0538083a4922fe4573c3bccc1c

mc_package() {
	conf_files="
		/etc/mc/filehighlight.ini
		/etc/mc/mc.ext
		/etc/mc/mcedit.menu
		/etc/mc/sfs.ini
		/etc/mc/mc.keymap.default
		/etc/mc/mc.menu
		/etc/mc/edit.indent.rc
		/etc/mc/mc.keymap
		/etc/mc/mc.menu.sr
		/etc/mc/mc.keymap.emac"
	pkg_install() {
		vmove all
	}
}
