# Description: Collection of tools for accessing the file system MS-DOS
# URL: http://mtools.linux.lu/
# Packager:  pierre at nutyx dot org
# Depends on: 

name=mtools
version=4.0.18
release=1

source=(ftp://ftp.gnu.org/gnu/mtools/$name-$version.tar.bz2)

build() {
	cd $name-$version

	sed -i '/^SAMPLE FILE$/s:^:# :' mtools.conf

	./configure --prefix=/usr \
              --mandir=/usr/share/man \
              --infodir=/usr/share/info \
	      --sysconfdir=/etc

	make
	make -j1 prefix=$PKG/usr install
	
	install -Dm644 mtools.conf $PKG/etc/mtools.conf
}
