APP=mtools
VERSION=4.0.24
BUILD=1sml
HOMEPAGE='https://www.gnu.org/software/mtools/'
DOWNLOAD='ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.24.tar.lz'
DESC="collection of utilities to access MS-DOS disks without mounting them"
REQUIRES="musl"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
#  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --without-x

  make PREFIX="/" DESTDIR=$PKG -j1 all install

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
1d9ece8222f3f0845091dd3647fe8d7c95049bbdca60f7f80a16b20c3c73b6bb86f8ba0d09965949cdbd4b7735651ac2f3ca6ef135d89db590d74149a4636ddc  mtools-4.0.24.tar.lz
"
