summaryrefslogtreecommitdiff
path: root/spirv-headers/Pkgfile
blob: bc95994b83845460a84631965900f429e974f2c3 (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 ninja
    5 
    6 name=spirv-headers
    7 version=1.5.3-060627f
    8 release=1
    9 source=(
   10 	#https://github.com/KhronosGroup/SPIRV-Headers/archive/$version/SPIRV-Headers-$version.tar.gz
   11 	https://github.com/KhronosGroup/SPIRV-Headers/archive/060627f0b0d2fa8581b5acb939f46e3b9e500593.zip
   12 )
   13 
   14 build() {
   15 	mv SPIRV-Headers-060627f0b0d2fa8581b5acb939f46e3b9e500593 SPIRV-Headers-$version
   16 
   17 	cmake -SSPIRV-Headers-$version -Bbuild -GNinja \
   18 		-DCMAKE_INSTALL_PREFIX=/usr \
   19 		-DCMAKE_INSTALL_LIBDIR=lib \
   20 		-DCMAKE_BUILD_TYPE=Release \
   21 		-DSPIRV_HEADERS_SKIP_EXAMPLES=ON
   22 
   23 	cmake --build build
   24 	DESTDIR=$PKG cmake --install build
   25 }

Generated by cgit