aboutsummaryrefslogtreecommitdiffstats
path: root/main/libdrm/APKBUILD
blob: 3e9ef05d2e31b09bc67c51c631746ad3d05044c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libdrm
pkgver=2.4.101
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_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://gitlab.freedesktop.org/mesa/drm/-/archive/libdrm-$pkgver/drm-libdrm-$pkgver.tar.gz"
builddir="$srcdir/drm-libdrm-$pkgver"

build() {
	mkdir -p "$builddir"/builddir
	cd "$builddir"/builddir
	meson \
		-Dprefix=/usr \
		--buildtype=plain \
		-Dfreedreno=true \
		-Dtegra=true \
		-Detnaviv=true \
		-Dudev=true
	ninja
}

check() {
	cd "$builddir"/builddir
	meson test
}

package() {
	cd "$builddir"/builddir
	DESTDIR="$pkgdir" ninja install
}

sha512sums="e1f5553eeb51bf420bd9faa21210104ae15df88f3f675a2289c3ede442c2b4141caba5a0e0e88adfcfd4e4a4d0bcdf896837b0f704db7a735955dbb70fdfc962  drm-libdrm-2.4.101.tar.gz"