# $Id: PKGBUILD 110193 2011-02-17 14:28:04Z jgc $ # Maintainer: Jan de Groot pkgname=libdrm pkgver=2.4.23 pkgrel=2 pkgdesc="Userspace interface to kernel DRM services" arch=(i686 x86_64) license=('custom') depends=('glibc') options=('!libtool') url="http://dri.freedesktop.org/" source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2 no-pthread-stubs.patch intel-git-fixes.patch COPYING) sha1sums=('9d651d1e394654c02343e3d95c0f8a442a91ac75' 'af2d9871565ea4cf524873f897691a18b2bba944' '40d5a749f05dc097c91c087fe1f8b970613e9098' 'ba3dcd636997ee0d30df14b03dae05c24ae5d094') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i "${srcdir}/no-pthread-stubs.patch" patch -Np1 -i "${srcdir}/intel-git-fixes.patch" libtoolize --force autoreconf --force --install ./configure --prefix=/usr \ --enable-udev \ --enable-intel \ --enable-radeon \ --enable-vmwgfx-experimental-api \ --enable-nouveau-experimental-api make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 "${srcdir}/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/" }