# mtools, http://www.tux.org/pub/knaff/mtools/

name=mtools
version=3.9.8
source=($name-$version.tar.gz)

build() {
    cd $name-$version
    ./configure --prefix=/usr --sysconfdir=/etc i386-root-linux
    make
    mkdir -p $PKG/etc
    make prefix=$PKG/usr sysconfdir=$PKG/etc install
    cp ../mtools.conf $PKG/etc
    chown root.root $PKG/etc/mtools.conf
    chmod 644 $PKG/etc/mtools.conf
    strip $PKG/usr/bin/*
    gzip -9 $PKG/usr/man/man?/*
    rm -f $PKG/usr/info/dir
    gzip -9 $PKG/usr/info/*
}
