diff options
author | Bruce Zhang | 2018-08-22 19:52:20 +0800 |
---|---|---|
committer | Bruce Zhang | 2018-08-22 19:52:20 +0800 |
commit | babaecf78c6bad9ef8fac626857c50ad96f1f34e (patch) | |
tree | a44314a75f13a4e0c961db0d6d225b65be2327b4 | |
download | aur-babaecf78c6bad9ef8fac626857c50ad96f1f34e.tar.gz |
initial build
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..17cd849695f3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = spirv-headers-git + pkgdesc = SPIR-V header files Git version + pkgver = r110.2c51218 + pkgrel = 1 + url = https://www.khronos.org/registry/spir-v/ + arch = any + license = custom + source = git://github.com/KhronosGroup/SPIRV-Headers.git + sha1sums = SKIP + +pkgname = spirv-headers-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..86023a4a1d4c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Bruce Zhang +pkgname=spirv-headers-git +pkgver=r110.2c51218 +pkgrel=1 +pkgdesc='SPIR-V header files Git version' +arch=('any') +url='https://www.khronos.org/registry/spir-v/' +license=('custom') +source=('git://github.com/KhronosGroup/SPIRV-Headers.git') +sha1sums=('SKIP') + +pkgver() { + cd "${srcdir}/SPIRV-Headers" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "${srcdir}/SPIRV-Headers/include/spirv/unified1" + + mkdir -p "${pkgdir}"/usr/include/spirv/unified1/ + install -m644 spirv.h "${pkgdir}"/usr/include/spirv/unified1/ + install -m644 spirv.hpp "${pkgdir}"/usr/include/spirv/unified1/ + install -m644 spirv.hpp11 "${pkgdir}"/usr/include/spirv/unified1/ + install -m644 GLSL.std.450.h "${pkgdir}"/usr/include/spirv/unified1/ + install -m644 OpenCL.std.h "${pkgdir}"/usr/include/spirv/unified1/ +} |