aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gxr/APKBUILD
blob: 6c6766eda8299740092b1f737a47f9e75852334b (plain) (blame)
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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=gxr
pkgver=0.15.1
pkgrel=0
pkgdesc="A glib wrapper for the OpenVR and the OpenXR APIs"
url="https://gitlab.freedesktop.org/xrdesktop/gxr"
arch="all"
license="MIT AND CC-BY-SA-4.0"
depends_dev="
	json-glib-dev
	openxr-dev
	"
makedepends="$depends_dev
	cmd:glslangValidator
	cmd:gtkdoc-scan
	gtk+3.0-dev
	gulkan-dev
	meson
	"
source="https://gitlab.freedesktop.org/xrdesktop/gxr/-/archive/$pkgver/gxr-$pkgver.tar.gz
	fix-build.patch
	"
subpackages="$pkgname-dev"

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

check() {
	# The XR tests require a working VR setup
	meson test --no-rebuild -v -C output --no-suite gxr:xr --no-suite post-install
}

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

sha512sums="6305882b6a963162fee04e6f686f08865c2f367836ea92432e73354b9e22282f3e1a720e9897152cdb98246355d67b8afa85146ba00eba25608568b1aacf20e8  gxr-0.15.1.tar.gz
247bf4df132f05e9792e73d674f5887a84508398233fa13e8d39e7788a3916a15ab05175f6504ebddff38d1e3d88eea051acf6afc1d0758fcd9f8f0022cf28d6  fix-build.patch"