app=mtools
version=4.0.24
build=1sml
homepage="https://www.gnu.org/software/mtools/"
download="ftp://ftp.gnu.org/gnu/mtools/mtools-$version.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
"
