summaryrefslogtreecommitdiff
path: root/testing/libdrm/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-06-17 00:03:04 +0000
committerroot <root@rshg054.dnsready.net>2012-06-17 00:03:04 +0000
commit608992f17d5473f8270f0779d3b9bcfe8fbdfa1c (patch)
tree01a9cf1b9b9ca1fd37e5c0a7f67f077633459f02 /testing/libdrm/PKGBUILD
parentf186b4cb8562b60dd4e1f5331f248caf547c8839 (diff)
Sun Jun 17 00:03:04 UTC 2012
Diffstat (limited to 'testing/libdrm/PKGBUILD')
-rw-r--r--testing/libdrm/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/libdrm/PKGBUILD b/testing/libdrm/PKGBUILD
new file mode 100644
index 000000000..ac97c6999
--- /dev/null
+++ b/testing/libdrm/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 161837 2012-06-15 13:57:09Z ibiru $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+
+pkgname=libdrm
+pkgver=2.4.35
+pkgrel=1
+pkgdesc="Userspace interface to kernel DRM services"
+arch=(i686 x86_64)
+license=('custom')
+depends=('glibc' 'libpciaccess')
+makedepends=('cairo' 'valgrind')
+replaces=('libdrm-new' 'libdrm-nouveau')
+options=('!libtool')
+url="http://dri.freedesktop.org/"
+source=(http://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.bz2
+ no-pthread-stubs.patch
+ COPYING
+)
+sha1sums=('a1d8d4945f782371d7855dbd693db885bd7e3d83'
+ '2a5410baa3e6e078f9378ce486a88f41d22fd838'
+ 'ba3dcd636997ee0d30df14b03dae05c24ae5d094')
+
+build() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i ../no-pthread-stubs.patch
+
+ #libtoolize --force
+ autoreconf --force --install
+ ./configure --prefix=/usr \
+ --enable-udev \
+ --enable-vmwgfx-experimental-api
+ 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/"
+}