33 lines
957 B
Bash
33 lines
957 B
Bash
# 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 <future_linux@163.com>
|
|
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
|
|
}
|