32 lines
764 B
Plaintext
32 lines
764 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.1
|
|
commit=af64a9e826bf5bb5fcd2434dd71be1e41e922563
|
|
release=1
|
|
source=(
|
|
#https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz
|
|
https://github.com/KhronosGroup/SPIRV-Headers/archive/$commit.tar.gz#/$name-$commit.tar.gz
|
|
)
|
|
|
|
build() {
|
|
# cd SPIRV-Headers-$version
|
|
cd SPIRV-Headers-$commit
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON \
|
|
-GNinja
|
|
|
|
ninja -j ${JOBS:-1}
|
|
DESTDIR=$PKG ninja install
|
|
}
|