app=exfat-utils
version=1.3.0
build=1sml
homepage="https://github.com/relan/exfat"
download="https://github.com/relan/exfat/archive/refs/tags/v$version.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
"
