# Packager = Tuxcore <dev@tuxcore.org> 
pkgname=libxshmfence
pkgver=1.3.2
pkgrel=2
pkgdesc="a library that exposes a event API on top of Linux futexes"
arch=('x86_64')
url="https://xorg.freedesktop.org/"
license=('HPND-sell-variant')
depends=('glibc')
makedepends=('xorg-util-macros' 'xorgproto')
source=(${url}/archive/individual/lib/${pkgname}-${pkgver}.tar.xz{,.sig})
sha512sums=('e20a6827e370726cf50489a69f4a52b897f1c44e3eba8c72a4e626b08724e877d090770b8016765736d887d5d5eaba1fda9c29066e62d259b4d1e2064bc1626c'
            'SKIP')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

check() {
  cd $pkgname-$pkgver
  make -k check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir/" install
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
}
