# Maintainer: PktSurf <smlinux@pktsurf.in>
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"

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

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

build() {
  CFLAGS+=" -std=c99" \
  ./configure \
    --prefix="" \
    --sbindir=/bin 

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
62f9c639fe61f8ad468a9036cf4588cfbc994ad10c1ad4fd14564bc78bc4e1db220338e10e540e45d4ee9b14e804e66944dace231f9f88ba8a83eafe53843d7c  exfat-utils-1.3.0.tar.lz
"
