# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libcap-ng
version=0.7.10
build=1sml
homepage="https://people.redhat.com/sgrubb/libcap-ng/"
download="https://people.redhat.com/sgrubb/libcap-ng/libcap-ng-$version.tar.gz"
desc="Capabilities library and utilities"
requires="musl"

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

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

build() {
  ./configure \
    --prefix="" \
    --enable-static=no \
    --with-python=no \
    --with-python3=no

  make
  make install DESTDIR=$pkg 

  cp COPYING* LICENSE $pkgdocs/
 
  mkfinalpkg
}

sha512sums="
87ae6cc41ce67a0258b1ada7b4984e87039e2a6817b265cf6c9f07c0047e27ed555165bd4390f5e49e2a0c73f76772ab111d2cb071e07d85a049aeaf3a6af5c8  libcap-ng-0.7.10.tar.lz
"
