26 lines
770 B
Plaintext
26 lines
770 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 ninja
|
|
|
|
name=spirv-headers
|
|
version=1.5.3-060627f
|
|
release=1
|
|
source=(
|
|
#https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz
|
|
https://github.com/KhronosGroup/SPIRV-Headers/archive/060627f0b0d2fa8581b5acb939f46e3b9e500593.zip
|
|
)
|
|
|
|
build() {
|
|
mv SPIRV-Headers-060627f0b0d2fa8581b5acb939f46e3b9e500593 SPIRV-Headers-$version
|
|
|
|
cmake -SSPIRV-Headers-$version -Bbuild -GNinja \
|
|
-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
|
|
}
|