aboutsummaryrefslogtreecommitdiffstats
path: root/community/spirv-headers/APKBUILD
blob: ee3e315c53c193bd62aea9e59f753d13ae228472 (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: Leo <thinkabit.ukim@gmail.com>
pkgname=spirv-headers
_pkgname=SPIRV-Headers
pkgver=1.4.1
pkgrel=1
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"
_commit=e4322e3be589e1ddd44afb20ea842a977c1319b8
source="$pkgname-$_commit.tar.gz::https://github.com/KhronosGroup/$_pkgname/archive/$_commit.tar.gz"

builddir="$srcdir/$_pkgname-$_commit"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		${CMAKE_CROSSOPTS} .
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="c63a771b5d0de871d76f85cdf18cda6f506eb24d6a8d9117d7a81456e222625ba15ae56f5bde6cc63fdb2d64d6270b2640616d1511cef1ab4a3798f14aa53cb0  spirv-headers-e4322e3be589e1ddd44afb20ea842a977c1319b8.tar.gz"