Package Details: gpu-trace 2.11-1

Git Clone URL: https://aur.archlinux.org/gpu-trace.git (read-only, click to copy)
Package Base: gpu-trace
Description: GPU Trace capture tool
Upstream URL: https://github.com/lostgoat/gpu-trace
Licenses: MIT
Conflicts: amdgpu-trace
Provides: amdgpu-trace
Submitter: lostgoat
Maintainer: lostgoat
Last Packager: lostgoat
Votes: 0
Popularity: 0.000000
First Submitted: 2021-03-09 16:14 (UTC)
Last Updated: 2023-07-13 20:12 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

lmartinez-mirror commented on 2021-06-29 17:28 (UTC)

Hi, packages that target tagged releases don't usually pull from a git repo, and if they do they have to add git to their makedepends (this package doesn't despite pulling from git).

I have a patch you can use that cleans it up -- it doesn't need git.

diff --git a/PKGBUILD b/PKGBUILD
index 0cfb866..1f9f66e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,23 @@
 # Maintainer: Andres Rodriguez <andresx7@gmail.com>
+# Contributor: Luis Martinez <luis dot martinez at tuta dot io>

 pkgname=gpu-trace
-pkgver=v2.4
-pkgrel=1
+pkgver=2.4
+pkgrel=2
 pkgdesc="GPU Trace capture tool"
-arch=('x86_64')
+arch=('any')
 url="https://github.com/lostgoat/gpu-trace"
 license=('MIT')
-depends=('trace-cmd')
-provides=('gpu-trace' 'amdgpu-trace')
-conflicts=('gpu-trace' 'amdgpu-trace')
-source=("git+$url#tag=$pkgver")
-sha256sums=("SKIP")
+depends=('python3' 'trace-cmd')
+provides=('amdgpu-trace')
+conflicts=('amdgpu-trace')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('2cd18ae743bc85db83dd4e762818cdc0162c7ead5f21daa7410143897ff18927')

 package() {
-    cd "${srcdir}/gpu-trace"
+    cd "$pkgname-$pkgver"
     install -dm755 "$pkgdir/usr/bin/"
     make INSTALL_ROOT="$pkgdir" INSTALL_PREFIX="/usr/" install
+    install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+    install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
 }