From b7dbb907175c8088b4c59a8fa07b2322ad2093e5 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Mon, 15 Apr 2024 22:06:49 +0800 Subject: [PATCH] spirv-headers 1.3.280.0-1 --- PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..3935bcf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=spirv-headers +pkgver=1.3.280.0 +pkgrel=1 +pkgdesc="SPIR-V Headers" +arch=('x86_64') +url="https://www.khronos.org/registry/spir-v/" +license=('MIT') +makedepends=('cmake' 'ninja') +source=(https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-${pkgver}/vulkan-sdk-${pkgver}.tar.gz) +sha256sums=(a00906b6bddaac1e37192eff2704582f82ce2d971f1aacee4d51d9db33b0f772) + +build() { + cd SPIRV-Headers-vulkan-sdk-${pkgver} + + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -G Ninja -Bbuild + + ninja -C build +} + +package() { + cd SPIRV-Headers-vulkan-sdk-${pkgver} + + DESTDIR=${pkgdir} ninja -C build install +}