updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / radeon-firmware / PKGBUILD
blobfc9b91193cb13bcf66aa9bb9ec0793c52cddf52f
1 # Maintainer: LEW21 <lew21@xtreeme.org>
3 pkgname=radeon-firmware
4 pkgver=20090926
5 _realver=2.6.31
6 _nextver=2.6.32
7 pkgrel=1
8 pkgdesc="Firmware for Radeon graphic cards from Dave Airlie's drm-next branch."
9 arch=(i686 x86_64)
10 url="http://airlied.livejournal.com/68097.html"
11 license=('LGPL')
12 depends=('glibc' "kernel26>=${_realver}" "kernel26<${_nextver}")
13 makedepends=('git' 'gcc')
14 source=('.config')
15 md5sums=('48faed3a3c96004b60bd839a68d57eb7')
17 _gitroot="git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git"
18 _gitbranch="drm-next"
19 _gitname="drm-2.6"
21 build() {
22         msg "Connecting to git.kernel.org GIT server...."
24         if [ -d $startdir/src/$_gitname ] ; then
25                 cd $_gitname || return 1
26                 (
27                         git checkout master -f
28                         git branch -D drm-next
29                 ) 2> /dev/null
30                 git pull origin || return 1
31                 msg "The local files are updated."
32         else
33                 git clone $_gitroot --depth 1
34                 cd $_gitname || return 1
35                 msg "GIT checkout done."
36         fi
38         msg "Selecting a branch: $_gitbranch"
39         git checkout -b $_gitbranch origin/$_gitbranch
41         msg "Starting make..."
43         rm -rf $startdir/src/$_gitname-build
44         cp -rH $startdir/src/$_gitname $startdir/src/$_gitname-build
45         cd $startdir/src/$_gitname-build
47         cp ${srcdir}/.config .
49         make modules || return 1
51         mkdir -p ${pkgdir}/lib/firmware/radeon || return 1
52         cp firmware/radeon/*.bin ${pkgdir}/lib/firmware/radeon || return 1