# Maintainer: PktSurf <smlinux@pktsurf.in>
app=npth
version=1.6
build=1sml
homepage="https://gnupg.org/software/npth/index.html"
download="https://gnupg.org/ftp/gcrypt/npth/npth-$version.tar.bz2"
desc="Provides non-premptive priority-based scheduling for multiple threads in event-driven programs"
requires="musl"

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

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

build() {
  ./configure \
    --prefix=

  make
  make install DESTDIR=$pkg 

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
db375a8a1cbb3b458d1bc57c35e08a4e7bca059d3bb22b55dd2530b074b1bc5870b29f3c8bd37a0ae836125fcfba382c791eb3bd994e8fb41d17e8c6d213496f  npth-1.6.tar.lz
"
