blob: 04e97f413b573c34086d65565c0240f7b6ab51b3 (
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: HurricanePootis <hurricanepootis@protonmail.com>
_pkgname=GeekbenchAI
pkgname=geekbench-ai
pkgver=1.2.0
pkgrel=1
pkgdesc="Geekbench AI is a cross-platform AI benchmark that uses real-world machine learning tasks to evaluate AI workload performance"
arch=('x86_64')
url="https://www.geekbench.com/ai/"
license=('LicenseRef-Geekbench-AI-v1')
depends=('gcc-libs' 'bash' 'ocl-icd' 'onetbb' 'glibc')
makedepends=('patchelf')
source=("https://cdn.geekbench.com/GeekbenchAI-${pkgver}-Linux.tar.gz"
eula-ai-v1.txt)
install=$pkgname.install
sha256sums=('7f611fc57af413f92d69a07582a6ff6f3dd12f6227a3ed5551eade3cf3762d25'
'825511a88bcb55bf7554e00378c416d4df2de28d70f912a9dfc262f2bbc49050')
package() {
cd "$srcdir/$_pkgname-$pkgver-Linux/"
# Create folders
install -dm755 "$pkgdir/usr/lib/$pkgname"
install -dm755 "$pkgdir/usr/bin"
# Install files and set 755 on libraries
cp -a -r * "$pkgdir/usr/lib/$pkgname/"
pushd "$pkgdir/usr/lib/$pkgname"
for file in *.so*;
do
chmod 755 $file
done
# Create launch script
cat >> "$pkgdir/usr/bin/banff" <<EOF
#!/usr/bin/env bash
LD_LIBRARY_PATH=/usr/lib/$pkgname:$LD_LIBRARY_PATH /usr/lib/$pkgname/banff "\$@"
EOF
chmod 755 "$pkgdir/usr/bin/banff"
# Remove insecure RUNPATH in binaries
for binary in banff{,_avx2,_x86_64};
do
patchelf --remove-rpath $binary
done
popd
install -Dm644 "$srcdir/eula-ai-v1.txt" "$pkgdir/usr/share/licenses/$pkgname/eula-ai-v1.txt"
}
|