opt/spirv-headers/Pkgfile

32 lines
764 B
Plaintext
Raw Normal View History

2019-11-23 08:16:07 +01:00
# Description: Header files from the SPIR-V registry
2019-05-14 15:59:14 +02:00
# URL: https://www.khronos.org/registry/spir-v/
# Maintainer: Danny Rawlins, crux at romster dot me
2019-08-30 16:42:24 +02:00
# Depends on: cmake ninja
2019-05-14 15:59:14 +02:00
name=spirv-headers
2019-11-23 08:16:07 +01:00
version=1.5.1
commit=af64a9e826bf5bb5fcd2434dd71be1e41e922563
release=1
2019-08-30 11:06:31 +02:00
source=(
#https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz
2019-11-23 08:16:07 +01:00
https://github.com/KhronosGroup/SPIRV-Headers/archive/$commit.tar.gz#/$name-$commit.tar.gz
2019-08-30 11:06:31 +02:00
)
2019-05-14 15:59:14 +02:00
build() {
2019-08-30 11:06:31 +02:00
# cd SPIRV-Headers-$version
cd SPIRV-Headers-$commit
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-08-30 11:06:31 +02:00
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
2019-08-30 16:42:24 +02:00
-DSPIRV_HEADERS_SKIP_EXAMPLES=ON \
-GNinja
2019-08-30 16:42:24 +02:00
ninja -j ${JOBS:-1}
DESTDIR=$PKG ninja install
2019-05-14 15:59:14 +02:00
}