summaryrefslogtreecommitdiff
path: root/extra/libxshmfence/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libxshmfence/PKGBUILD')
-rw-r--r--extra/libxshmfence/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/extra/libxshmfence/PKGBUILD b/extra/libxshmfence/PKGBUILD
new file mode 100644
index 000000000..162aac75d
--- /dev/null
+++ b/extra/libxshmfence/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 198729 2013-11-02 10:02:59Z andyrtr $
+# Maintainer: AndyRTR <andyrtr@archlinux.org>
+
+pkgname=libxshmfence
+pkgver=1.0
+pkgrel=1
+pkgdesc="a library that exposes a event API on top of Linux futexes"
+arch=('i686' 'x86_64')
+url="http://xorg.freedesktop.org/"
+license=('GPL')
+#groups=()
+depends=('glibc')
+makedepends=('xorg-util-macros')
+source=(${url}/releases/individual/lib/${pkgname}-${pkgver}.tar.bz2
+ COPYING)
+sha256sums=('625089553939baa20e665873a6c8f3d694cfde78fb3110aa59da92fd2b14f14f'
+ '5e46864ede2fda46c3cb7cfe3a7b9f9e4bd36d8d21d8010a284caa64b81d465a')
+
+build() {
+ cd $pkgname-$pkgver
+
+ # fix some libtools errors
+ autoreconf -vfi
+
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd $pkgname-$pkgver
+ make -k check
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir/" install
+
+ # license is still missing
+ # COPYING is taken from top of /usr/include/X11/xshmfence.h
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 ${srcdir}/COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+}