Browse Source

renderdoc-git: added to repo

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
master
Steven Noonan 6 months ago
parent
commit
86fa7077d1
Signed by: steven GPG Key ID: 408EEB508ED0CD4D
  1. 2
      renderdoc-git/.gitignore
  2. 62
      renderdoc-git/PKGBUILD
  3. 10
      renderdoc-git/renderdoc.desktop

2
renderdoc-git/.gitignore

@ -0,0 +1,2 @@
*.pkg.*
/renderdoc/

62
renderdoc-git/PKGBUILD

@ -0,0 +1,62 @@
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
# Contributor: Hubert Jarosz <marqin.pl+aur at gmail dot com> PGP: 0xFFECF63C1AAB83FF
pkgbase=renderdoc
pkgname=(renderdoc-gl renderdoc-vk)
pkgver=1.13+80.gaa0be4ee47
pkgrel=1
pkgdesc="OpenGL and Vulkan debugging tool"
arch=(i686 x86_64)
url="https://github.com/baldurk/renderdoc"
license=("MIT")
makedepends=("git" "cmake" "ninja" "python")
depends=("wayland" "libx11" "libxcb" "mesa" "libgl" "qt5-base" "qt5-svg" "qt5-x11extras" "xcb-util-keysyms")
source=("git+https://github.com/baldurk/renderdoc"
"renderdoc.desktop")
sha256sums=('SKIP'
'eab4941dc17fbbdcb9e34a698c3b304d212be54956daeb0c3b1cf5b7f2b00984')
conflicts=('renderdoc')
provides=("renderdoc=${pkgver%+*}")
pkgver() {
cd "${srcdir}"/renderdoc
git describe --always --abbrev=10 HEAD |
sed 's/^v//; s/-/+/; s/-/./'
}
build() {
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_VERSION_DIST_CONTACT="https://aur.archlinux.org/packages/renderdoc-git" \
-DBUILD_VERSION_DIST_NAME="Arch" \
-DBUILD_VERSION_DIST_VER="${pkgver}" \
-D ENABLE_WAYLAND=ON \
-S renderdoc -B build-gl \
-G Ninja
ninja -C build-gl
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_VERSION_DIST_CONTACT="https://aur.archlinux.org/packages/renderdoc-git" \
-DBUILD_VERSION_DIST_NAME="Arch" \
-DBUILD_VERSION_DIST_VER="${pkgver}" \
-D ENABLE_EGL=OFF \
-D ENABLE_GLES=OFF \
-D ENABLE_WAYLAND=ON \
-S renderdoc -B build-vk \
-G Ninja
ninja -C build-vk
}
package_renderdoc-gl() {
DESTDIR="$pkgdir" ninja -C build-vk install
install -Dm644 "${srcdir}"/renderdoc.desktop "$pkgdir/usr/share/applications/renderdoc.desktop"
install -Dm644 "${srcdir}"/renderdoc/docs/imgs/logo.png "$pkgdir/usr/share/icons/renderdoc.png"
}
package_renderdoc-vk() {
DESTDIR="$pkgdir" ninja -C build-vk install
install -Dm644 "${srcdir}"/renderdoc.desktop "$pkgdir/usr/share/applications/renderdoc.desktop"
install -Dm644 "${srcdir}"/renderdoc/docs/imgs/logo.png "$pkgdir/usr/share/icons/renderdoc.png"
}

10
renderdoc-git/renderdoc.desktop

@ -0,0 +1,10 @@
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=QRenderDoc
Comment=RenderDoc is a stand-alone graphics debugging tool.
Exec=qrenderdoc
Icon=renderdoc
Terminal=false
StartupNotify=false
Categories=Application;Graphics;Development;
Loading…
Cancel
Save