23 lines
659 B
Plaintext
23 lines
659 B
Plaintext
# Description: Header files from the SPIR-V registry
|
|
# URL: https://www.khronos.org/registry/spir-v/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: cmake
|
|
|
|
name=spirv-headers
|
|
version=1.3.236.0
|
|
release=1
|
|
source=(https://github.com/KhronosGroup/SPIRV-Headers/archive/sdk-$version/SPIRV-Headers-sdk-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst ninja && PKGMK_SPIRV_HEADERS+=' -G Ninja'
|
|
|
|
cmake -S SPIRV-Headers-sdk-$version -B build $PKGMK_SPIRV_HEADERS \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|