blob: 7546c6dc0c01c806efeee592e368b107219985f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
pkgname=mingw-w64-spirv-headers
epoch=1
pkgver=1.3.283.0
pkgrel=1
pkgdesc='SPIR-V Headers (mingw-w64)'
arch=('any')
url='https://www.khronos.org/registry/spir-v/'
license=('Apache')
makedepends=('mingw-w64-cmake')
options=('!strip' '!buildflags' 'staticlibs')
source=("https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/vulkan-sdk-${pkgver}/spirv-headers-${pkgver}.tar.gz")
sha256sums=('a68a25996268841073c01514df7bab8f64e2db1945944b45087e5c40eed12cb9')
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
build() {
cd SPIRV-Headers-vulkan-sdk-${pkgver}
for _arch in ${_architectures}; do
${_arch}-cmake -B build-${_arch} -DSPIRV_HEADERS_SKIP_EXAMPLES=ON
make -C build-${_arch}
done
}
package() {
cd "${srcdir}/SPIRV-Headers-vulkan-sdk-${pkgver}"
for _arch in ${_architectures}; do
make -C build-${_arch} DESTDIR="${pkgdir}" install
done
}
|