diff options
author | Lubosz Sarnecki | 2018-02-12 15:49:17 +0100 |
---|---|---|
committer | Lubosz Sarnecki | 2018-02-12 15:49:17 +0100 |
commit | 2dbc83195a4fc2bac0803e92708424613bb24cb4 (patch) | |
tree | ba10737cc79c99ab4310522c68337665a29ddd19 | |
download | aur-2dbc83195a4fc2bac0803e92708424613bb24cb4.tar.gz |
Create package.
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..54ac8dc5137e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Mon Feb 12 14:48:59 UTC 2018 +pkgbase = spirv-cross-git + pkgdesc = Tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages. + pkgver = r1059.7be30aa + pkgrel = 1 + url = https://github.com/KhronosGroup/SPIRV-Cross + arch = x86_64 + license = Apache2 + makedepends = cmake + makedepends = git + provides = spirv-cross + conflicts = spirv-cross + source = spirv-cross::git+https://github.com/KhronosGroup/SPIRV-Cross.git + md5sums = SKIP + +pkgname = spirv-cross-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8314cde5d7fb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Lubosz Sarnecki <lubosz@gmail.com> +basename=spirv-cross +pkgname=$basename-git +pkgver=r1059.7be30aa +pkgrel=1 +pkgdesc="Tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages." +arch=(x86_64) +url="https://github.com/KhronosGroup/SPIRV-Cross" +license=('Apache2') +groups=() +depends=() +optdepends=() +makedepends=('cmake' 'git') +provides=("$basename") +conflicts=("$basename") +replaces=() +backup=() +options=() +install= +source=( + 'spirv-cross::git+https://github.com/KhronosGroup/SPIRV-Cross.git' +) +noextract=() +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$basename" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "$srcdir/$basename" + mkdir -p build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_PREFIX_PATH=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + .. + cmake --build . +} + +package() { + cd "$srcdir/$basename/build" + make DESTDIR="$pkgdir/" install + install -Dm644 "$srcdir/$basename/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |