blob: f27e9881b569fcc91e1ef649f775e35bb31b16b4 (
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.236.0
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 }
|