# Contributor: Will Sinatra # Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.115 pkgrel=7 pkgdesc="Userspace interface to kernel DRM services" url="https://dri.freedesktop.org/" arch="all" # Requires a computer with gfx, no X running, build user in 'video' group.. options="!check" license="MIT" depends_dev="linux-headers" makedepends="$depends_dev meson eudev-dev libpciaccess-dev xmlto" checkdepends="cunit-dev bash" subpackages="$pkgname-dev $pkgname-tests" source="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-$pkgver/drm-libdrm-$pkgver.tar.gz" builddir="$srcdir/drm-libdrm-$pkgver" build() { CFLAGS="$CFLAGS -O2" \ CPPFLAGS="$CPPFLAGS -O2" \ CXXFLAGS="$CXXFLAGS -O2" \ abuild-meson \ -Db_lto=true \ -Dfreedreno=enabled \ -Dtegra=enabled \ -Domap=enabled \ -Dexynos=enabled \ -Dvc4=enabled \ -Detnaviv=enabled \ -Dudev=true \ -Dinstall-test-programs=true \ -Dtests=true \ . output meson compile -C output } check() { meson test --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } tests() { amove usr/bin } sha512sums=" 121acad724d91fdfc3511e01f44252bae1ca406a34412613bff8666fb6c3fd1e1d124089b629e9f8c47e7f9a22fd8cd632e23c263e0188d3bd6bf94835b62490 drm-libdrm-2.4.115.tar.gz "