updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / drm-radeon-module-git-r6xx-r7xx-3d / PKGBUILD
blobf435633b1b31dc0b38cfbf171fde709d06937906
1 #Maintainer: Perry3D <perry3d@gmail.com> 
3 pkgname=drm-radeon-module-git-r6xx-r7xx-3d
4 pkgver=20090920
5 pkgrel=1
6 pkgdesc="radeon and drm module r6xx-r7xx-3d."
7 arch=(i686 x86_64)
8 depends=('glibc' 'libdrm')
9 makedepends=('git')
10 options=('!libtool')
11 url="http://dri.freedesktop.org/"
12 license=('custom')
13 groups=('xorg')
14 install=('drm.install')
15 source=()
16 md5sums=()
18 _kernver=$(uname -r)
19 _gitroot="git://anongit.freedesktop.org/~agd5f/drm"
20 _gitname="drm"
21 _branch="r6xx-r7xx-3d origin/r6xx-r7xx-3d"
23 build() {
24         export MAKEFLAGS=""
25         msg "Connecting to git.freedesktop.org GIT server...."
27         if [ -d ${srcdir}/$_gitname ] ; then
28                 cd $_gitname && git pull origin
29                 msg "The local files are updated."
30         else
31                 git clone $_gitroot
32                 cd ${srcdir}/${_gitname}
33                 msg "Switch branch to r6xx-r7xx-3d"
34                 git checkout -b $_branch
35         fi
38         msg "GIT checkout done or server timeout"
39         cd ${srcdir}
40         rm -rf ${_gitname}-build
41         git clone $_gitname $_gitname-build
42         cd ${srcdir}/$_gitname-build
44         msg "Starting make..."
45         cd linux-core
46         make radeon.o || return 1
47         install -m644 -D drm.ko $startdir/pkg/lib/modules/${_kernver}/updates/drm.ko
48         install -m644 -D radeon.ko $startdir/pkg/lib/modules/${_kernver}/updates/radeon.ko