diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-09-03 22:44:47 -0500 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-09-19 10:53:39 +0000 |
commit | 9bd0825d32629476d9893a97d53d425330e231f0 (patch) | |
tree | f2737cd9da72fa9f9c53023f7dabac79139f6dda /main/libxshmfence | |
parent | 7dd8fdf63a036991c1d9aa7f3d5ccce0f2041205 (diff) | |
download | aports-9bd0825d32629476d9893a97d53d425330e231f0.tar.bz2 aports-9bd0825d32629476d9893a97d53d425330e231f0.tar.xz |
main/libxshmfence: modernise, fix deps, add test suite
Diffstat (limited to 'main/libxshmfence')
-rw-r--r-- | main/libxshmfence/APKBUILD | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/main/libxshmfence/APKBUILD b/main/libxshmfence/APKBUILD index c623fc3fd6..59b55a54ef 100644 --- a/main/libxshmfence/APKBUILD +++ b/main/libxshmfence/APKBUILD @@ -2,44 +2,37 @@ # Maintainer: pkgname=libxshmfence pkgver=1.2 -pkgrel=1 +pkgrel=2 pkgdesc="X11 shared memory fences" url="http://www.x.org/" arch="all" license="MIT" depends="" -depends_dev="xproto linux-headers" -makedepends="$depends_dev" +depends_dev="linux-headers" +makedepends="$depends_dev util-macros xproto" install="" subpackages="$pkgname-dev" source="http://www.x.org/releases/individual/lib/libxshmfence-$pkgver.tar.bz2" -_builddir="$srcdir"/libxshmfence-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ - --enable-futex \ - || return 1 - make || return 1 + --enable-futex + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } md5sums="66662e76899112c0f99e22f2fc775a7e libxshmfence-1.2.tar.bz2" |