updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / libdrm-git / PKGBUILD
blobeb7913454208bdd2a5485d92beacd8e7acda8ec3
1 # Arch libdrm Maintainers:
2 #       Jan de Groot
3 #       Andreas Radke
5 pkgname=libdrm-git
6 pkgver=20120108
7 pkgrel=1
8 pkgdesc="Userspace interface to kernel DRM services"
9 arch=('i686' 'x86_64')
10 license=('custom')
11 depends=('libpciaccess')
12 provides=('libdrm=2.4.30')
13 makedepends=('cairo' 'udev')
14 options=('!libtool')
15 url="http://dri.freedesktop.org/"
16 conflicts=('libdrm')
17 source=('stubs.patch'
18         'COPYING')
19 sha1sums=('516fbda03b5a8545105e5a79d3f9021e579ecb19'
20           'ba3dcd636997ee0d30df14b03dae05c24ae5d094')
22 _gitroot='git://git.freedesktop.org/git/mesa/drm'
23 _gitname='drm'
25 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
30   if [[ -d "$_gitname" ]]; then
31     cd "$_gitname" && git pull origin
32     msg "The local files are updated."
33   else
34     git clone "$_gitroot" "$_gitname"
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting build..."
40   rm -rf "$srcdir/$_gitname-build"
41   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42   cd "$srcdir/$_gitname-build"
44   patch -Np1 -i "$srcdir/stubs.patch"
45   
46   ./autogen.sh
47   ./configure --prefix=/usr \
48       --enable-udev \
49       --enable-intel \
50       --enable-radeon \
51       --enable-vmwgfx-experimental-api \
52       --enable-nouveau-experimental-api
53   make V=1
56 check() {
57   cd "$srcdir/$_gitname-build"
58   make -k check
61 package() {
62   cd "$srcdir/$_gitname-build"
63   make DESTDIR="$pkgdir" install
64   install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
65   install -m644 "$srcdir/COPYING" "$pkgdir/usr/share/licenses/$pkgname/"