# $Id: PKGBUILD 22422 2008-12-26 19:30:38Z jgc $
# Maintainer:  <juergen@archlinux.org>
pkgname=xf86-video-radeonhd
pkgver=1.2.4
pkgrel=1
pkgdesc="Experimental Radeon HD video driver for r500 and r600 ATI cards"
arch=(i686 x86_64)
url="http://wiki.x.org/wiki/radeonhd"
license=('custom')
depends=('glibc' 'ati-dri>=7.2' 'libdrm' 'libpciaccess')
makedepends=('pkgconfig' 'xorg-server>=1.5.3' 'diffutils')
conflicts=('xorg-server<1.5.3')
options=('!libtool')
conflicts=('xf86-video-radeonhd-git')
replaces=('xf86-video-radeonhd-git')
groups=('xorg-video-drivers')
source=(http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
md5sums=('3c9cfffe7e3d795dde59ea0eef7361b1')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}