summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom2019-12-02 08:21:31 +0000
committerEric Engestrom2019-12-02 10:07:22 +0000
commit539505c65fec88ed27e74e63226d0eb8cdce0979 (patch)
tree612487e5ade27a0ac841b93b9727c89e9d21a9e9
downloadaur-gapid-bin.tar.gz
initial commit - v1.6.1
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore2
-rw-r--r--PKGBUILD59
-rw-r--r--gapid.desktop10
-rw-r--r--gapid.sh3
5 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4c60605159b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = gapid-bin
+ pkgdesc = Graphics API Debugger - GAPID is a collection of tools that allows you to inspect, tweak and replay calls from an application to a graphics driver
+ pkgver = 1.6.1
+ pkgrel = 1
+ url = https://gapid.dev
+ arch = x86_64
+ license = apache
+ depends = java-runtime
+ depends = libx11
+ provides = gapid
+ conflicts = gapid
+ source = gapid.desktop
+ source = gapid.sh
+ sha256sums = 6ad0f976e6f3dc57af3e81d271a9ebc54ea06fbf73e879c3d12caa81f2cbcb10
+ sha256sums = 2b480553d47bbe4e8f62c15223ce0555ce72f6e947abe9d117d2b3cf7b57dcb2
+ source_x86_64 = https://github.com/google/gapid/releases/download/v1.6.1/gapid-1.6.1-linux.zip
+ sha256sums_x86_64 = db003498c43ff9ac50fb65bdc09b8777e1b21e94ad205f0355eaecd0c853953e
+
+pkgname = gapid-bin
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..0c2ccb8d019
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/*.zip
+/*.pkg.*
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fc8e86b65f9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
+
+pkgname=gapid-bin
+conflicts=(gapid)
+provides=(gapid)
+pkgver=1.6.1
+pkgrel=1
+pkgdesc='Graphics API Debugger - GAPID is a collection of tools that allows you to inspect, tweak and replay calls from an application to a graphics driver'
+url=https://gapid.dev
+arch=(x86_64)
+license=(apache)
+depends=(java-runtime libx11)
+source=(gapid.desktop
+ gapid.sh)
+source_x86_64=("https://github.com/google/gapid/releases/download/v$pkgver/gapid-$pkgver-linux.zip")
+sha256sums=('6ad0f976e6f3dc57af3e81d271a9ebc54ea06fbf73e879c3d12caa81f2cbcb10'
+ '2b480553d47bbe4e8f62c15223ce0555ce72f6e947abe9d117d2b3cf7b57dcb2')
+sha256sums_x86_64=('db003498c43ff9ac50fb65bdc09b8777e1b21e94ad205f0355eaecd0c853953e')
+
+_install_vk_layer() {
+ lib=$1
+ json=$2
+
+ # Install Vulkan layer
+ install -m755 $lib "$pkgdir"/usr/lib/
+ install -m644 $json "$pkgdir"/usr/share/vulkan/explicit_layer.d/
+
+ # Fix library path
+ sed "s,<library>,/usr/lib/$(basename $lib)," \
+ -i "$pkgdir"/usr/share/vulkan/explicit_layer.d/$(basename $json)
+}
+
+package() {
+ cd gapid
+
+ msg2 'Tools'
+ install -dm755 "$pkgdir"/usr/bin
+ install -m755 gapi? "$pkgdir"/usr/bin/
+ install -m755 device-info "$pkgdir"/usr/bin/
+
+ msg2 'GUI jar'
+ # Note: the jar expects the GAPI* tools to live in the current directory
+ install -m755 lib/gapic.jar "$pkgdir"/usr/bin/
+
+ msg2 'Wrap gapid to look for the jar in the right place'
+ # It looks in $PWD/lib/ otherwise, which will never be right...
+ mv "$pkgdir"/usr/bin/gapid{,.internal}
+ install -m755 ../gapid.sh "$pkgdir"/usr/bin/gapid
+
+ msg2 'Vulkan layers'
+ install -dm755 "$pkgdir"/usr/lib
+ install -dm755 "$pkgdir"/usr/share/vulkan/explicit_layer.d/
+ _install_vk_layer lib/libVkLayer_VirtualSwapchain.so lib/VirtualSwapchainLayer.json
+ _install_vk_layer lib/libgapii.so lib/GraphicsSpyLayer.json
+
+ msg2 'Desktop shortcut'
+ install -Dm644 ../gapid.desktop "$pkgdir"/usr/share/applications/gapid.desktop
+ install -Dm644 icon.png "$pkgdir"/usr/share/icons/hicolor/256x256/apps/gapid.png
+}
diff --git a/gapid.desktop b/gapid.desktop
new file mode 100644
index 00000000000..4624fe65b16
--- /dev/null
+++ b/gapid.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=Application
+Name=GAPID
+Comment=Graphics API Debugger
+Exec=gapid
+Icon=gapid
+Terminal=false
+StartupNotify=false
+Categories=Application;Graphics;Development;
diff --git a/gapid.sh b/gapid.sh
new file mode 100644
index 00000000000..91afae23590
--- /dev/null
+++ b/gapid.sh
@@ -0,0 +1,3 @@
+#/bin/sh
+cd /usr/bin
+exec ./gapid.internal --jar gapic.jar "$@"