# $Id: PKGBUILD 146314 2012-01-09 15:57:26Z andyrtr $ # Maintainer: Jan de Groot pkgname=libdrm pkgver=2.4.30 pkgrel=1 pkgdesc="Userspace interface to kernel DRM services" arch=(i686 x86_64 'mips64el') license=('custom') depends=('glibc' 'libpciaccess') makedepends=('cairo') options=('!libtool') url="http://dri.freedesktop.org/" source=(http://dri.freedesktop.org/${pkgname}/${pkgname}-${pkgver}.tar.bz2 no-pthread-stubs.patch COPYING # git_fixes.diff ) md5sums=('9f57a68b2c0836b55ebcbc241f6ca175' 'fb8a15bf4aff5646c517373e8277f440' 'ba65e71c481b94ef0fb6c23c7f21ffa1') build() { cd "${srcdir}/${pkgname}-${pkgver}" patch -Np1 -i "${srcdir}/no-pthread-stubs.patch" # git fixes - currently none # patch -Np1 -i ${srcdir}/git_fixes.diff #libtoolize --force autoreconf --force --install ./configure --prefix=/usr \ --enable-udev \ --enable-intel \ --enable-radeon \ --enable-vmwgfx-experimental-api \ --enable-nouveau-experimental-api make } check() { cd "${srcdir}/${pkgname}-${pkgver}" make -k check } 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}/" }