aboutsummaryrefslogtreecommitdiffstats
path: root/main/spirv-headers/APKBUILD
blob: ba681d7c22905a738c7a893ae39c96f6f97f8ed9 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=spirv-headers
_pkgname=SPIRV-Headers
pkgver=1.3.243.0
pkgrel=0
pkgdesc="Machine-readable files for the SPIR-V Registry"
options="!check" # No testsuite
url="https://github.com/KhronosGroup/SPIRV-Headers"
arch="noarch"
license="GPL-3.0-or-later"
makedepends="cmake samurai"
source="$pkgname-$pkgver.tar.gz::https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/sdk-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-sdk-$pkgver"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

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

sha512sums="
3a835e89168e90ad9b799679d7e111ece9f9d763ac830ec299e70226c50318df7cbdebd72cc75cbf13534781549e0140fbbdc5aa4de7c61338a6a23abf56a728  spirv-headers-1.3.243.0.tar.gz
"