1 # Contributor: Connor Behan <connor.behan@gmail.com>
6 pkgdesc="Modesetting capable libdrm"
9 depends=('glibc' 'kernel26-kms')
10 makedepends=('git' 'kernel-headers-kms')
11 provides=('libdrm=2.4.4')
13 options=('!libtool' 'force')
14 url="http://tirdc.livejournal.com/"
15 source=('no-pthread-stubs.patch')
16 md5sums=('68e785f3602f09bbe56a00ecc5d6fd9c')
18 _gitroot="git://anongit.freedesktop.org/mesa/drm"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
29 git clone $_gitroot $_gitname
30 msg2 "Fetching sources..."
32 git checkout --track -b modesetting-gem origin/modesetting-gem
36 rm -rf $srcdir/$_gitname-build
37 cp -r $srcdir/$_gitname $srcdir/$_gitname-build
38 cd $srcdir/$_gitname-build
40 msg2 "Starting make..."
43 patch -Np1 -i "${srcdir}/no-pthread-stubs.patch"
44 ./autogen.sh --prefix=/usr || return 1
46 make DESTDIR="${pkgdir}" install || return 1