aboutsummaryrefslogtreecommitdiffstats
path: root/community/vulkan-loader/APKBUILD
blob: 4997805b13e3317359d6f0366091fd97b5f937b7 (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
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=vulkan-loader
pkgver=1.2.184
pkgrel=1
arch="all"
url="https://www.khronos.org/vulkan"
pkgdesc="Vulkan Installable Client Driver (ICD) Loader"
license="Apache-2.0"
depends_dev="vulkan-headers"
makedepends="$depends_dev
	cmake
	libx11-dev
	libxrandr-dev
	python3
	wayland-dev
	"
source="https://github.com/khronosgroup/vulkan-loader/archive/v$pkgver/vulkan-loader-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests
builddir="$srcdir/Vulkan-Loader-$pkgver"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_SYSCONFDIR=/etc \
		-DCMAKE_INSTALL_DATADIR=share \
		-DCMAKE_SKIP_RPATH=True \
		-DVULKAN_HEADERS_INSTALL_DIR=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
49f065f82d50a46ce5eb5791510543fb26dd131c639418130d92680f647a318fa5c315a7e8a01851dab2af39adcbad340b2f96c42f47a04bd1f4ca7e0953e2ed  vulkan-loader-v1.2.184.tar.gz
"