# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libnfs
version=4.0.0
build=1sml
homepage="https://github.com/sahlberg/libnfs"
desc="Client library for accessing NFS shares"
requires="musl"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static

  make
  make install DESTDIR=$pkg 

  cp COPYING LICENCE* $pkgdocs/

  mkfinalpkg
}

sha512sums="
3b93b2d9ab64f899cc25be795a077da12f36188f3170789c5903b5fd986b6641a1dc325ce3678047dbdaf6b7209b5711c7c746000b4a90274413163bf65ea147  libnfs-4.0.0.tar.lz
"
