summaryrefslogtreecommitdiff
path: root/community/virglrenderer/APKBUILD
blob: 30c9306965c6c06ea538151dc645fa6528722407 (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
42
43
44
45
# Contributor: Fernando Casas Schossow <casasfernando@outlook.com>
# Maintainer: Fernando Casas Schossow <casasfernando@outlook.com>
pkgname=virglrenderer
pkgver=0.10.4
pkgrel=0
pkgdesc="A virtual 3D GPU library, that allows the guest operating system to use the host GPU to accelerate 3D rendering"
url="https://virgil3d.github.io/"
options="!check"
arch="all"
license="MIT"
makedepends="meson libva-glx-dev libdrm-dev mesa-dev libepoxy-dev python3 check-dev"
subpackages="$pkgname-dev"
source="https://gitlab.freedesktop.org/virgl/virglrenderer/-/archive/virglrenderer-$pkgver/virglrenderer-virglrenderer-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

# secfixes:
#   0.10.3-r0:
#     - CVE-2022-0135
#     - CVE-2022-0175
#   0.8.1-r0:
#     - CVE-2019-18388
#     - CVE-2019-18389
#     - CVE-2019-18390
#     - CVE-2019-18391

build() {
	abuild-meson \
		-Db_lto=true \
		-Dtests=true \
		-Dvideo=true \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
dd545b4dd1ec504f8fc1209a933fef63ffdb08298c0cf274f0f314525b0bf03233a1b18cb6d7a8c372d1476af3a1b4b74bc3dc72ea18e99954a3ca324c2bb81f  virglrenderer-virglrenderer-0.10.4.tar.gz
"