blob: 3d0a1684a34f8d7f21d90fa024404e58e0a138c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: Patrik Plihal <patrik dot plihal at gmail dot com>
_pkgname=RadeonDeveloperToolSuite-2024-09-26-1411
pkgname=radeon-gpu-profiler
pkgver=2.3
pkgrel=3
pkgdesc='A suite of GUI applications that provide detailed low-level information on Radeon GPUs. (rgp, rga)'
arch=('x86_64')
url="https://gpuopen.com/rgp/"
license=('MIT')
depends=('gcc-libs' 'sh')
options=(!debug)
source=("https://gpuopen.com/download/radeon-developer-tool-suite/${_pkgname}.tgz")
sha512sums=('cb4525bd813120752bef3bc84275b9ca6adce256fff1af0cba627b80e95c69fdac76af2aaba4d56b607c7b7d9e908a774ebd9d1fbb8d053d3aa2625b9a313e3a')
install=radeon-gpu-profiler.install
package()
{
# copy to opt
mkdir -p "${pkgdir}/opt/"
cp -r "${srcdir}/${_pkgname}/" "${pkgdir}/opt/${pkgname}/"
# create launcher scripts (prepended with QT_QPA_PLATFORM= for wayland compat)
declare -A _binaries=(
RadeonGPUAnalyzer rga
RadeonGPUProfiler rgp
)
mkdir -p "${pkgdir}/usr/bin/"
for _binary in "${!_binaries[@]}"
do
_bin="${_binaries[$_binary]}"
cat > "$pkgdir/usr/bin/$_bin"<< EOF
#!/usr/bin/env sh
export LD_LIBRARY_PATH=/opt/${pkgname}/lib/
export QT_QPA_PLATFORM=
exec /opt/${pkgname}/${_binary}
EOF
chmod 0755 "$pkgdir/usr/bin/$_bin"
done
}
|