diff options
author | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-09-05 15:22:04 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@adinet.com.uy> | 2012-09-05 15:22:04 -0300 |
commit | 31d1d244dfa339442d93591327eb68fd000f0a72 (patch) | |
tree | 0e17ab3bc4646db77339b1c65f6ea57bf6b410c4 | |
parent | 15665e9fffe5563ac1dda896f7ff8170216cc2d5 (diff) |
libdrm-git: add package to pcr
-rw-r--r-- | pcr/libdrm-git/PKGBUILD | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/pcr/libdrm-git/PKGBUILD b/pcr/libdrm-git/PKGBUILD new file mode 100644 index 000000000..6ea5c34df --- /dev/null +++ b/pcr/libdrm-git/PKGBUILD @@ -0,0 +1,80 @@ +# 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@lavabit.com> + +pkgname=libdrm-git +pkgver=20120905 +pkgrel=1 +pkgdesc='Userspace interface to kernel DRM services' +arch=( + i686 + x86_64 + mips64el +) +license=( + MIT +) +depends=( + libpciaccess + ) +makedepends=( + cairo + git + valgrind +) +options=( + '!libtool' +) +url=http://dri.freedesktop.org/ +provides=( + libdrm=2.4.39 +) +conflicts=( + ${pkgname%-git} +) + +_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-nouveau \ + --enable-vmwgfx + make V=1 +} + +check() { + cd $srcdir/$_gitname-build + make -k check +} + +package() { + cd $srcdir/$_gitname-build + make DESTDIR=$pkgdir install +} |