blob: eb4b7aae45ce75f63ead6d6a751db9760dea5780 (
plain)
1 # Description: Header files from the SPIR-V registry
2 # URL: https://www.khronos.org/registry/spir-v/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: cmake
5
6 name=spirv-headers
7 version=1.3.231.1
8 release=1
9 source=(https://github.com/KhronosGroup/SPIRV-Headers/archive/sdk-$version/SPIRV-Headers-sdk-$version.tar.gz)
10
11 build() {
12 prt-get isinst ninja && PKGMK_SPIRV_HEADERS+=' -G Ninja'
13
14 cmake -S SPIRV-Headers-sdk-$version -B build $PKGMK_SPIRV_HEADERS \
15 -DCMAKE_INSTALL_PREFIX=/usr \
16 -DCMAKE_INSTALL_LIBDIR=lib \
17 -DCMAKE_BUILD_TYPE=Release \
18 -DSPIRV_HEADERS_SKIP_EXAMPLES=ON
19
20 cmake --build build
21 DESTDIR=$PKG cmake --install build
22 }
|