1 # Contributor: Markus Gross
2 # Parts taken from avivo pkgbuild from: jonathan
3 # originally based on a PKGBUILD created by "billy" from archlinux.org forum
4 # Maintainer kfgz <kfgz at interia pl>
6 pkgname=xf86-video-radeonhd-git
11 pkgdesc="Driver for AMD GPG r5xx/r6xx/r7xx Chipsets"
12 url="http://cgit.freedesktop.org/xorg/driver/xf86-video-radeonhd/"
13 arch=('i686' 'x86_64')
15 depends=('glibc' 'ati-dri>=7.6' 'libdrm>=2.4.15' 'libpciaccess')
16 makedepends=('pkgconfig' 'xorg-server>=1.7.0' 'diffutils' 'mesa' 'glproto' 'git' \
17 'automake' 'xf86driproto' 'xorg-server-devel' 'xorg-util-macros')
18 conflicts=('xorg-server<1.7.0' 'xf86-video-radeonhd')
19 provides=("xf86-video-radeonhd=${_ver}")
21 install=radeonhd.install
22 source=(configure.patch)
23 md5sums=('a0f42379b6c8ebbf03b60ff6f7e67316')
25 _gitroot="git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd"
26 _gitname="xf86-video-radeonhd"
30 msg "Connecting to git.freedesktop.org GIT server...."
32 if [ -d ${srcdir}/${_gitname} ] ; then
33 cd ${_gitname} && git pull origin
34 msg "The local files are updated."
39 msg "GIT checkout done or server timeout"
41 cd "${srcdir}/${_gitname}"
42 patch -Np1 -i ${srcdir}/configure.patch
44 msg "Creating build directory"
45 if [ -d ${srcdir}/${_gitname}-build ]; then rm -rf ${srcdir}/${_gitname}-build; fi
46 cp -R ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build
48 msg "Starting make..."
49 cd ${srcdir}/${_gitname}-build
50 ./autogen.sh --prefix=/usr
55 cd ${srcdir}/${_gitname}-build
56 make DESTDIR=${pkgdir} install
57 install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${_gitname}/COPYING