updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / libdrm-kms / PKGBUILD
blob8570e414099c1f00397fe6b4f5fb09d0401ddb3f
1 # Contributor: Connor Behan <connor.behan@gmail.com>
3 pkgname=libdrm-kms
4 pkgver=20090410
5 pkgrel=2
6 pkgdesc="Modesetting capable libdrm"
7 arch=(i686 x86_64)
8 license=('MIT')
9 depends=('glibc' 'kernel26-kms')
10 makedepends=('git' 'kernel-headers-kms')
11 provides=('libdrm=2.4.4')
12 replaces=('libdrm')
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"
19 _gitname="drm"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30     msg2 "Fetching sources..."
31     cd $_gitname
32     git checkout --track -b modesetting-gem origin/modesetting-gem
33   fi
35   msg2 "Preparing..."
36   rm -rf $srcdir/$_gitname-build
37   cp -r $srcdir/$_gitname $srcdir/$_gitname-build
38   cd $srcdir/$_gitname-build
40   msg2 "Starting make..."
42   msg2 "add patch..."
43   patch -Np1 -i "${srcdir}/no-pthread-stubs.patch"
44   ./autogen.sh --prefix=/usr || return 1
45   make || return 1
46   make DESTDIR="${pkgdir}" install || return 1