From bccc42c3dfb2d761c71a9afb27a57e9d9c0bd957 Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Sat, 4 Dec 2021 01:40:11 +0100 Subject: [PATCH] libdrm-static: new aport --- libdrm-static/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 libdrm-static/APKBUILD diff --git a/libdrm-static/APKBUILD b/libdrm-static/APKBUILD new file mode 100644 index 0000000..9206111 --- /dev/null +++ b/libdrm-static/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Will Sinatra +# Maintainer: Natanael Copa +pkgname=libdrm-static +pkgver=2.4.109 +pkgrel=0 +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="linux-headers" +makedepends="meson libpthread-stubs eudev-dev libpciaccess-dev xmlto" +checkdepends="cunit-dev bash" +source="https://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-$pkgver/drm-libdrm-$pkgver.tar.gz" +builddir="$srcdir/drm-libdrm-$pkgver" + +build() { + abuild-meson \ + -Dfreedreno=true \ + -Dtegra=true \ + -Domap=true \ + -Dexynos=true \ + -Dvc4=true \ + -Detnaviv=true \ + -Dudev=true \ + -Ddefault_library=static \ + . output + meson compile ${JOBS:+-j ${JOBS}} -C output +} + +check() { + meson test -v -C output +} + +package() { + install -Dm644 "$builddir"/output/libdrm.a "$pkgdir"/usr/lib/libdrm.a +} + +sha512sums=" +77afc048f449de2c3d8588b7ef9136f69fc11b9130a7364872ad30807407aa180ded27d37961e94a738f8b5db9a9b19266c8f00d9a39b3f6b33ecad2ea44bc7b drm-libdrm-2.4.109.tar.gz +"