APP=exfat-utils
VERSION=1.3.0
BUILD=1sml
HOMEPAGE='https://github.com/relan/exfat'
DOWNLOAD='https://github.com/relan/exfat/archive/refs/tags/v1.3.0.tar.gz'
DESC="Utilities to create and manipulate Microsoft exFAT filesystems"
REQUIRES="musl"

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

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

  CFLAGS="$CFLAGS -std=c99" \
  ./configure \
    --prefix="" \
    --sbindir=/bin \
    --sysconfdir=/etc 

  make
  make install DESTDIR=$PKG 

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
e1c5b708f22e878d7521e3299866bba127145757e3620696ff11b18c8c7d4830522974e8ee4771234b70aa9718295d3433779cf34ca990e28ccc06cbf9325f7e  exfat-utils-1.3.0.tar.gz
"
