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"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    $BUILDDIST

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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