26 lines
906 B
Plaintext
26 lines
906 B
Plaintext
# Description: Vulkan Header files and API registry
|
|
# URL: https://www.khronos.org/vulkan/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: cmake
|
|
|
|
name=vulkan-headers
|
|
version=1.2.175
|
|
release=2
|
|
source=(https://github.com/KhronosGroup/Vulkan-Headers/archive/v$version/$name-v$version.tar.gz
|
|
0001-Omitted-static-vk_video-headers-in-the-1.2.175-updat.patch
|
|
0002-Add-vk_video-headers-to-CMake-install-target.patch)
|
|
|
|
build() {
|
|
# fix building error with vulkan-icd-loader-1.2.174
|
|
patch -d Vulkan-Headers-$version -p1 -i $SRC/0001-Omitted-static-vk_video-headers-in-the-1.2.175-updat.patch
|
|
patch -d Vulkan-Headers-$version -p1 -i $SRC/0002-Add-vk_video-headers-to-CMake-install-target.patch
|
|
|
|
cmake -S Vulkan-Headers-$version -B build \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-D CMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
}
|