1 # Arch libdrm Maintainers:
8 pkgdesc="Userspace interface to kernel DRM services"
11 depends=('libpciaccess')
12 provides=('libdrm=2.4.30')
13 makedepends=('cairo' 'udev')
15 url="http://dri.freedesktop.org/"
19 sha1sums=('516fbda03b5a8545105e5a79d3f9021e579ecb19'
20 'ba3dcd636997ee0d30df14b03dae05c24ae5d094')
22 _gitroot='git://git.freedesktop.org/git/mesa/drm'
28 msg "Connecting to GIT server...."
30 if [[ -d "$_gitname" ]]; then
31 cd "$_gitname" && git pull origin
32 msg "The local files are updated."
34 git clone "$_gitroot" "$_gitname"
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"
47 ./configure --prefix=/usr \
51 --enable-vmwgfx-experimental-api \
52 --enable-nouveau-experimental-api
57 cd "$srcdir/$_gitname-build"
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/"