APP=dosfstools
VERSION=4.1
BUILD=1sml
HOMEPAGE='https://github.com/dosfstools/dosfstools'
DOWNLOAD='https://github.com/dosfstools/dosfstools/releases/download/v4.1/dosfstools-4.1.tar.gz'
DESC="Tools for working with FAT filesystems"
REQUIRES="eudev"

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

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

  LDFLAGS="-static" \
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --sysconfdir=/etc \
    --enable-compat-symlinks 

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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