# Maintainer: Natanael Copa pkgname=libdrm pkgver=2.4.99 pkgrel=1 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 libpthread-stubs eudev-dev libpciaccess-dev xmlto" checkdepends="cunit-dev bash" subpackages="$pkgname-dev $pkgname-doc" source="https://dri.freedesktop.org/$pkgname/$pkgname-$pkgver.tar.bz2 ioctl.patch " build() { mkdir -p "$builddir"/builddir cd "$builddir"/builddir meson \ -Dprefix=/usr \ -Dfreedreno=true \ -Dtegra=true \ -Detnaviv=true \ -Dudev=true ninja } check() { cd "$builddir"/builddir meson test } package() { cd "$builddir"/builddir DESTDIR="$pkgdir" ninja install } sha512sums="04702eebe8dca97fac61653623804fdcb0b8b3714bdc6f5e72f0dfdce9c9524cf16f69d37aa9feac79ddc1c11939be44a216484563a612414668ea5eaeadf191 libdrm-2.4.99.tar.bz2 af52fef51aaa05a4dd17919371cb9d92a77480402730bf53ba223e54df52f3825be05a7f28e6aef8c904db5ee59fe38a6c15bc6aafa7f8d31a719e80399dd51f ioctl.patch"