diff options
author | Eric Engestrom | 2020-07-25 22:34:40 +0200 |
---|---|---|
committer | Eric Engestrom | 2020-07-25 22:34:40 +0200 |
commit | fe2a292d7c8004bce9de7f20fed0380f19043e4a (patch) | |
tree | 60ba86b319a0b8787fcd2d31531cfbfafba77d32 | |
download | aur-renderdoc-nightly.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 29 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 58 |
3 files changed, 91 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f3ccc9a18211 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,29 @@ +pkgbase = renderdoc-nightly + pkgdesc = OpenGL and Vulkan debugging tool - nightly builds + pkgver = 2020.07.24 + pkgrel = 1 + url = https://github.com/baldurk/renderdoc + arch = x86_64 + license = MIT + depends = libxcb + depends = libx11 + depends = libxcb + depends = mesa + depends = libgl + depends = qt5-base + depends = qt5-svg + depends = qt5-x11extras + depends = xcb-util-keysyms + depends = fontconfig + depends = freetype2 + depends = glu + depends = libproxy + depends = python + depends = desktop-file-utils + depends = hicolor-icon-theme + provides = renderdoc + conflicts = renderdoc + validpgpkeys = 1B039DB9A4718A2D699DE031AC612C3120C34695 + +pkgname = renderdoc-nightly + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..018a3de08144 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!PKGBUILD +!.SRCINFO +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0cd83d2f69cb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch> + +pkgname=renderdoc-nightly +pkgver=2020.07.24 +pkgrel=1 +pkgdesc="OpenGL and Vulkan debugging tool - nightly builds" +arch=(x86_64) +url="https://github.com/baldurk/renderdoc" +license=(MIT) +depends=(libxcb libx11 libxcb mesa libgl qt5-base qt5-svg qt5-x11extras xcb-util-keysyms fontconfig freetype2 glu libproxy python desktop-file-utils hicolor-icon-theme) +validpgpkeys=('1B039DB9A4718A2D699DE031AC612C3120C34695') +conflicts=(renderdoc) +provides=(renderdoc) + +prepare() { + msg2 "Looking up latest nightly build" + local page=$(curl -sL https://renderdoc.org/builds) + local url=$(grep -oE '/autobuilds/[^/]+/[0-9]+/renderdoc_[0-9_]+_[0-9a-f]+.tar.gz' <<< "$page" | head -1) + local tarball=$(basename "$url") + local basename=$(basename "$tarball" .tar.gz) + + msg2 "Found $tarball; downloading it now" + wget -q -c "https://renderdoc.org/$url"{,.sig} + + msg2 "Verifying $tarball" + if ! gpg_output=$(gpg --verify "$tarball.sig" 2>&1) + then + echo "$gpg_output" + msg2 "Tarball failed verification!" + false + fi + if ! grep -q "$validgpgkeys" <<< "$gpg_output" + then + echo "$gpg_output" + msg2 "Unexpected key used in signature (but the tarball signature passed)" + false + fi + + msg2 "Extracting $tarball" + tar xf "$tarball" + + rm -rf renderdoc_nightly + mv "$basename" renderdoc_nightly + + # patch library prefix + sed -i 's|/io/dist|/usr|' renderdoc_nightly/etc/vulkan/implicit_layer.d/renderdoc_capture.json +} + +pkgver() { + echo renderdoc_*_*_*_*.tar.gz | sed -r 's/^.*_([0-9]+)_([0-9]+)_([0-9]+)_.*$/\1.\2.\3/g' +} + +package() { + cd renderdoc_nightly + install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/renderdoc-bin/LICENSE.md + cp -rt "$pkgdir" etc + cp -rt "$pkgdir"/usr bin include lib share +} |