# Maintainer: PktSurf <smlinux@pktsurf.in>
app=dosfstools
version=4.1
build=2sml
homepage="https://github.com/dosfstools/dosfstools"
download="https://github.com/dosfstools/dosfstools/releases/download/v$version/dosfstools-$version.tar.gz"
desc="Tools for working with FAT filesystems"
requires="eudev"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  LDFLAGS="-static" \
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --docdir="/share/doc/$app-$version" \
    --enable-compat-symlinks

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
d70ee344b35e25ab7bec3feaafd412f4ccc0c744fb0275c4c97e70e575afb3dcfe70e7c714a7b9a026f180ac2b67bb492b011150309e7eb9d6acc473d1857652  dosfstools-4.1.tar.lz
"
