pkgbuild-geekbench

Comprehensive set of benchmarks designed to quickly and accurately measure CPU and GPU Compute performance
git clone git://fossdaily.xyz/pkgbuild-geekbench
Log | Files | Refs

commit 29ad245ad29d8133b3d98c4e2e08d05938a03c8e
Author: caltlgin <contact@fossdaily.xyz>
Date:   Wed, 18 Nov 2020 16:49:12 +1300

Add to caltlgin repo

Diffstat:
A.SRCINFO | 25+++++++++++++++++++++++++
A.gitignore | 4++++
APKGBUILD | 49+++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = geekbench + pkgdesc = Comprehensive set of benchmarks designed to quickly and accurately measure CPU and GPU Compute performance + pkgver = 5.3.1 + pkgrel = 3 + url = https://www.geekbench.com + arch = x86_64 + license = custom + makedepends = gendesk + makedepends = imagemagick + depends = hicolor-icon-theme + depends = zlib + provides = geekbench5 + conflicts = geekbench + conflicts = geekbench2 + conflicts = geekbench3 + conflicts = geekbench4 + source = http://cdn.geekbench.com/Geekbench-5.3.1-Linux.tar.gz + source = http://cdn.geekbench.com/Geekbench-5.3.1-Mac.zip + source = geekbench-5.3.1-3.png::https://www.geekbench.com/img/favicons/ios/apple-touch-icon.png + sha256sums = 190b8820745f3e2a7f2173b1ac9a0e61bbfd3672cb049d3a309e5f9e771d3442 + sha256sums = 54deea9d5a1bb12f73488c747e4272fef4e932e2febfa18f9a5a2002141687c0 + sha256sums = 1a2ed5bae6c2a8e67e209f620d095f6e49625ffdf049ce23966f630fef319abb + +pkgname = geekbench + diff --git a/.gitignore b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz> + +pkgname='geekbench' +pkgver=5.3.1 +pkgrel=3 +pkgdesc="Comprehensive set of benchmarks designed to quickly and accurately measure CPU and GPU Compute performance" +arch=('x86_64') +url='https://www.geekbench.com' +_url_source='http://cdn.geekbench.com' +license=('custom') +depends=('hicolor-icon-theme' 'zlib') +makedepends=('gendesk' 'imagemagick') +provides=("${pkgname}${pkgver::1}") +conflicts=("${pkgname}" "${pkgname}"{2..4}) +source=("${_url_source}/${pkgname^}-${pkgver}-"{'Linux.tar.gz','Mac.zip'} + "${pkgname}-${pkgver}-${pkgrel}.png::${url}/img/favicons/ios/apple-touch-icon.png") +sha256sums=('190b8820745f3e2a7f2173b1ac9a0e61bbfd3672cb049d3a309e5f9e771d3442' + '54deea9d5a1bb12f73488c747e4272fef4e932e2febfa18f9a5a2002141687c0' + '1a2ed5bae6c2a8e67e209f620d095f6e49625ffdf049ce23966f630fef319abb') + +prepare() { + gendesk -f -n \ + --pkgname="${pkgname}" \ + --pkgdesc="${pkgdesc}" \ + --name="${pkgname^}" \ + --comment="${pkgdesc}" \ + --exec="sh -c \"/usr/bin/${pkgname}${pkgver::1};echo;echo PRESS ENTER;read line\"" \ + --icon="${pkgname}" \ + --terminal='true' \ + --categories='Utility' +} + +package() { + install -Dvm644 "${pkgname}.desktop" -t "${pkgdir}/usr/share/applications" + + for i in 16 22 24 32 48 64 96 128 256 512; do + convert "${pkgname}-${pkgver}-${pkgrel}.png" -resize "${i}x${i}" "icon${i}.png" + install -Dvm644 "icon${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/${pkgname}.png" + done + + install -Dvm644 "${pkgname^} ${pkgver::1}.app/Contents/Resources/eula.rtf" -t "${pkgdir}/usr/share/licenses/${pkgname}" + + cd "${pkgname^}-${pkgver}-Linux" + install -Dvm755 "${pkgname}"{'_x86_64','.plar',"${pkgver::1}"} -t "${pkgdir}/opt/${pkgname}" + install -dv "${pkgdir}/usr/bin" + ln -sf "/opt/${pkgname}/${pkgname}${pkgver::1}" -t "${pkgdir}/usr/bin" +} + +# vim: ts=2 sw=2 et: