# Maintainer : Vincent Grande # Contributor : Lone_Wolf # Contributor : Eric Engestrom # Contributor : Jan de Groot pkgname=libdrm-minimal-git _realname=libdrm pkgver=2.4.100.r68.g8a73372e pkgrel=1 pkgdesc="Userspace interface to kernel DRM services, master git version" arch=(i686 x86_64) license=('custom') depends=('libpciaccess') makedepends=('libxslt' 'meson' 'git' 'ninja') #checkdepends=('cairo' 'cunit') url="http://dri.freedesktop.org/" provides=('libdrm' 'libdrm-git') conflicts=('libdrm') source=("git+https://gitlab.freedesktop.org/mesa/drm.git" COPYING) sha512sums=('SKIP' 'b0ca349b882a4326b19f81f22804fabdb6fb7aef31cdc7b16b0a7ae191bfbb50c7daddb2fc4e6c33f1136af06d060a273de36f6f3412ea326f16fa4309fda660') pkgver() { cd drm git describe --long --abbrev=8 | sed 's/^libdrm-//;s/\([^-]*-g\)/r\1/;s/-/./g' } prepare() { if [ -d _build ]; then rm -rf _build fi } build() { meson setup drm _build \ --prefix /usr \ --buildtype plain \ --wrap-mode nofallback \ -D udev=false \ -D valgrind=false \ -D freedreno=false \ -D vc4=false \ -D vmwgfx=false \ -D amdgpu=true \ -D radeon=true \ -D intel=false \ -D nouveau=false \ -D man-pages=false meson configure _build ninja $NINJAFLAGS -C _build # EDIT BUILD OPTIONS TO MATCH YOUR CARDS - DEFAULTS TO AMDGPU / RADEON # RADEON NEEDS TO BE TRUE WHEN BUILDING AGAINST MESA } #check() { # '-t 10' is needed for the 'threaded' test, which uses the default meson # test timeout of 30 seconds. This is too short for many systems. It can be # removed if upstream fixes the issue. # meson test -C _build -t 10 #} package() { DESTDIR="$pkgdir" ninja $NINJAFLAGS -C _build install install -Dt "$pkgdir"/usr/share/licenses/"$pkgname" -m644 COPYING }