summaryrefslogtreecommitdiff
path: root/~coadde/libdrm-git/PKGBUILD
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-06-11 23:33:19 -0300
committerMárcio Alexandre Silva Delgado <coadde@adinet.com.uy>2012-06-11 23:33:19 -0300
commited761ffd6cbc0a9e658f738c9b53c7679643714e (patch)
tree734d2ca0d02c5d64fcae61ef6911da1faa13e04f /~coadde/libdrm-git/PKGBUILD
parent4c4ef7c0a3a748e6c0bbc488752410886cf0591e (diff)
update libdrm-git package
Diffstat (limited to '~coadde/libdrm-git/PKGBUILD')
-rw-r--r--~coadde/libdrm-git/PKGBUILD48
1 files changed, 29 insertions, 19 deletions
diff --git a/~coadde/libdrm-git/PKGBUILD b/~coadde/libdrm-git/PKGBUILD
index faced3da9..63af0c80c 100644
--- a/~coadde/libdrm-git/PKGBUILD
+++ b/~coadde/libdrm-git/PKGBUILD
@@ -1,19 +1,26 @@
+# $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=20120611
-pkgrel=2
+pkgver=20120612
+pkgrel=1
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')
+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'
@@ -21,25 +28,26 @@ _gitname='drm'
build() {
- cd "$srcdir"
+ cd "${srcdir}"
msg "Connecting to GIT server...."
- if [[ -d "$_gitname" ]]; then
- cd "$_gitname" && git pull origin
+ if [[ -d "${_gitname}" ]]; then
+ cd "${_gitname}" && git pull origin
msg "The local files are updated."
else
- git clone "$_gitroot" "$_gitname"
+ 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
+ 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 \
@@ -47,15 +55,17 @@ build() {
--enable-radeon \
--enable-vmwgfx-experimental-api \
--enable-nouveau
- make V=1
+ make
}
check() {
- cd "$srcdir/$_gitname-build"
+ cd "${srcdir}/${_gitname}-build"
make -k check
}
package() {
- cd "$srcdir/$_gitname-build"
- make DESTDIR="$pkgdir" install
+ 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}/"
}