aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gulkan/APKBUILD
blob: 80fc66c3884c6422e33dd2da33cf140def3034dc (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=gulkan
pkgver=0.15.1
pkgrel=0
pkgdesc="GLib library for Vulkan abstraction"
url="https://gitlab.freedesktop.org/xrdesktop/gulkan"
arch="all"
license="MIT AND CC-BY-SA-4.0"
depends_dev="
	gdk-pixbuf-dev
	gobject-introspection-dev
	graphene-dev
	vulkan-loader-dev
	"
makedepends="$depends_dev
	cmd:glslangValidator
	cmd:gtkdoc-scan
	meson
	"
source="https://gitlab.freedesktop.org/xrdesktop/gulkan/-/archive/$pkgver/gulkan-$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # Requires a working Vulkan driver

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

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

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

sha512sums="b3ce7f5aff3341cdf7ddb6ed897ebf0164111ead3b8b0a92fc699fc8420fbffb0bd9b88f1304f1c2fcd8c2e5a639934607c69a27f47db96408d5b974a076e7b1  gulkan-0.15.1.tar.gz"