# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libxshmfence
version=1.3
build=1sml
homepage="https://xorg.freedesktop.org/"
download="https://www.x.org/releases/individual/lib/libxshmfence-$version.tar.bz2"
desc="a library that exposes a event API on top of Linux futexes"
requires="musl xorg-macros xorgproto"

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 $pkgdocs/

  mkfinalpkg
}

sha512sums="
2e8c6b394813c6c673e64b7e23bc2ea3d5dc9c88c190b82129831ff2171bc6f5a82f092d87e72547360c6f08b6d5a8d97d2248c658fa5761944dc6283508380e  libxshmfence-1.3.tar.lz
"
