# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libpthread-stubs
version=0.1
build=1sml
homepage="https://gitlab.freedesktop.org/xorg/lib/pthread-stubs"
desc="Library providing weak aliases for pthread functions"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
f46c856cc77c0fe5c3b785f52c7defc37cd5e8a731b0c81016334c80ff89d5a0724a2a3272050f5ff220d597f4a743de76e40b466c28634da3f5c8ee169f85e7  libpthread-stubs-0.1.tar.lz
"
