diff options
author | Márcio Silva <marcio@pc-02.localdomain> | 2012-06-11 16:06:33 -0300 |
---|---|---|
committer | Márcio Silva <marcio@pc-02.localdomain> | 2012-06-11 16:06:33 -0300 |
commit | 5d9e43e2246de3d18b1a0eb17c3c05902eba3375 (patch) | |
tree | 5c273f67955c0596e84438705dae64cf389b1c92 /~coadde/libdrm-git/PKGBUILD | |
parent | 450ad35087731b9626eaddea78e2f5848d318f11 (diff) | |
download | abslibre-5d9e43e2246de3d18b1a0eb17c3c05902eba3375.tar.gz abslibre-5d9e43e2246de3d18b1a0eb17c3c05902eba3375.tar.bz2 abslibre-5d9e43e2246de3d18b1a0eb17c3c05902eba3375.zip |
adding libdrm-git package to ~coadde
Diffstat (limited to '~coadde/libdrm-git/PKGBUILD')
-rw-r--r-- | ~coadde/libdrm-git/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/~coadde/libdrm-git/PKGBUILD b/~coadde/libdrm-git/PKGBUILD new file mode 100644 index 000000000..faced3da9 --- /dev/null +++ b/~coadde/libdrm-git/PKGBUILD @@ -0,0 +1,61 @@ +# Arch libdrm Maintainers: +# Jan de Groot +# Andreas Radke +# Maintainer (Parabola): Márcio Silva <coadde@adinet.com.uy> + +pkgname=libdrm-git +pkgver=20120611 +pkgrel=2 +pkgdesc="Userspace interface to kernel DRM services" +arch=('i686' 'x86_64' 'mips64el') +license=('MIT') +depends=('libpciaccess') +provides=('libdrm=2.4.35') +makedepends=('git' 'cairo' 'udev') +options=('!libtool') +url="http://dri.freedesktop.org/" +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" + + sed -i 's/PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)//' configure.ac + + ./autogen.sh + ./configure --prefix=/usr \ + --enable-udev \ + --enable-intel \ + --enable-radeon \ + --enable-vmwgfx-experimental-api \ + --enable-nouveau + make V=1 +} + +check() { + cd "$srcdir/$_gitname-build" + make -k check +} + +package() { + cd "$srcdir/$_gitname-build" + make DESTDIR="$pkgdir" install +} |