48 lines
1.1 KiB
Text
48 lines
1.1 KiB
Text
|
# $Id: PKGBUILD 204511 2014-01-21 18:58:35Z lcarlier $
|
||
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
||
|
|
||
|
pkgname=libdrm
|
||
|
pkgver=2.4.52
|
||
|
pkgrel=1
|
||
|
pkgdesc="Userspace interface to kernel DRM services"
|
||
|
arch=(i686 x86_64)
|
||
|
license=('custom')
|
||
|
depends=('glibc' 'libpciaccess')
|
||
|
makedepends=('valgrind')
|
||
|
checkdepends=('cairo')
|
||
|
replaces=('libdrm-new' 'libdrm-nouveau')
|
||
|
#options=(debug !strip)
|
||
|
options=(!strip)
|
||
|
url="http://dri.freedesktop.org/"
|
||
|
source=("libdrm::git://anongit.freedesktop.org/mesa/drm"
|
||
|
COPYING)
|
||
|
sha256sums=('SKIP'
|
||
|
'9631d4f694952e3e6ae5a05534c2e93e994e47d3413677a3a00e45c8cef6db93')
|
||
|
|
||
|
pkgver(){
|
||
|
cd $pkgname
|
||
|
git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
|
||
|
}
|
||
|
build() {
|
||
|
cd $pkgname
|
||
|
|
||
|
# pthread is useless in Linux
|
||
|
sed -i "/pthread-stubs/d" configure.ac
|
||
|
autoreconf --force --install
|
||
|
|
||
|
./configure --prefix=/usr --enable-freedreno-experimental-api
|
||
|
make
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
cd $pkgname
|
||
|
make -k check
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $pkgname
|
||
|
make DESTDIR="$pkgdir" install
|
||
|
install -m755 -d "$pkgdir/usr/share/licenses/$pkgname"
|
||
|
install -m644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/"
|
||
|
}
|