summaryrefslogtreecommitdiff
path: root/~coadde/libdrm-git/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-06-12 14:14:38 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-06-12 14:14:38 -0300
commit5b14d7a2322b3a1cf0e220b399a373da881860ea (patch)
tree4e24a61c6dba996d16da632535be8fef460bf75b /~coadde/libdrm-git/PKGBUILD
parentd552afbbdc76f89dc83c6dcbeeaa81478ffd0e47 (diff)
parent2c09d4147cf0a7b5b8ae2025bc68fa38c29fa5f0 (diff)
downloadabslibre-5b14d7a2322b3a1cf0e220b399a373da881860ea.tar.gz
abslibre-5b14d7a2322b3a1cf0e220b399a373da881860ea.tar.bz2
abslibre-5b14d7a2322b3a1cf0e220b399a373da881860ea.zip
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to '~coadde/libdrm-git/PKGBUILD')
-rw-r--r--~coadde/libdrm-git/PKGBUILD71
1 files changed, 71 insertions, 0 deletions
diff --git a/~coadde/libdrm-git/PKGBUILD b/~coadde/libdrm-git/PKGBUILD
new file mode 100644
index 000000000..63af0c80c
--- /dev/null
+++ b/~coadde/libdrm-git/PKGBUILD
@@ -0,0 +1,71 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+# Contributor: Alexander Baldeck <alexander@archlinux.org>
+# Arch libdrm Maintainers:
+# Jan de Groot
+# Andreas Radke
+# Maintainer (Parabola): Márcio Silva <coadde@adinet.com.uy>
+
+pkgname=libdrm-git
+pkgver=20120612
+pkgrel=1
+pkgdesc="Userspace interface to kernel DRM services"
+arch=('i686' 'x86_64' 'mips64el')
+license=('custom')
+depends=('glibc' 'libpciaccess')
+makedepends=('cairo' 'valgrind' 'git')
+options=('!libtool')
+url="http://dri.freedesktop.org/"
+source=(no-pthread-stubs.patch
+ COPYING)
+sha1sums=('2a5410baa3e6e078f9378ce486a88f41d22fd838'
+ 'ba3dcd636997ee0d30df14b03dae05c24ae5d094')
+provides=('libdrm=2.4.35')
+conflicts=('libdrm')
+
+_gitroot='git://git.freedesktop.org/git/mesa/drm'
+_gitname='drm'
+
+build() {
+
+ cd "${srcdir}"
+ msg "Connecting to GIT server...."
+
+ if [[ -d "${_gitname}" ]]; then
+ cd "${_gitname}" && git pull origin
+ msg "The local files are updated."
+ else
+ git clone "${_gitroot}" "${_gitname}"
+ fi
+
+ msg "GIT checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "${srcdir}/${_gitname}-build"
+ git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
+ cd "${srcdir}/${_gitname}-build"
+ patch -Np1 -i "${srcdir}/no-pthread-stubs.patch"
+
+ #libtoolize --force
+ autoreconf --force --install
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --enable-udev \
+ --enable-intel \
+ --enable-radeon \
+ --enable-vmwgfx-experimental-api \
+ --enable-nouveau
+ make
+}
+
+check() {
+ cd "${srcdir}/${_gitname}-build"
+ make -k check
+}
+
+package() {
+ cd "${srcdir}/${_gitname}-build"
+ make DESTDIR="${pkgdir}" install
+ install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/"
+}