summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Vic2024-01-05 13:37:35 +0100
committerTor Vic2024-01-05 13:38:22 +0100
commitd1e11c0fe9d1533dad7b5af96a177b5a616660ab (patch)
tree0a85f3e0cf0a4b36ea32607b37290da4cebb6bdb
parentbb9d72bbc4b2c577faf4ea5de3384bc1bfd41900 (diff)
downloadaur-d1e11c0fe9d1533dad7b5af96a177b5a616660ab.tar.gz
move to own repository, set version to 2.0
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD11
2 files changed, 8 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87ed09753169..3bdecc939274 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mini-benchmarker
pkgdesc = A simple benchmarking script using stress-ng, perf, blender etc.
- pkgver = 0.9.r142.g953a1b9
+ pkgver = 2.0.r2.gcbebebd
pkgrel = 1
url = https://gitlab.com/torvic9/bash-scripts/-/tree/master/mini-benchmarker
arch = x86_64
@@ -22,7 +22,7 @@ pkgbase = mini-benchmarker
depends = git
depends = python
depends = primesieve
- source = git+https://gitlab.com/torvic9/bash-scripts.git
+ source = git+https://gitlab.com/torvic9/mini-benchmarker.git
sha512sums = SKIP
pkgname = mini-benchmarker
diff --git a/PKGBUILD b/PKGBUILD
index 03b42c0caa5c..8f5107cfd231 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,8 @@
# Maintainer: Tor Vic <torvic9 AT mailbox DOT org>
pkgname='mini-benchmarker'
-pkgver=0.9.r142.g953a1b9
+_ver=2.0
+pkgver=2.0.r2.gcbebebd
pkgrel=1
pkgdesc='A simple benchmarking script using stress-ng, perf, blender etc.'
url="https://gitlab.com/torvic9/bash-scripts/-/tree/master/mini-benchmarker"
@@ -10,15 +11,15 @@ licence=('GPL3')
depends=('gcc' 'make' 'cmake' 'time' 'perf' 'unzip'
'nasm' 'inxi' 'argon2' 'wget' 'x265' 'xz' 'zstd'
'zlib' 'libdrm' 'git' 'python' 'primesieve')
-source=(git+https://gitlab.com/torvic9/bash-scripts.git)
+source=(git+https://gitlab.com/torvic9/mini-benchmarker.git)
sha512sums=('SKIP')
pkgver() {
- cd bash-scripts/$pkgname
- git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+ cd $pkgname
+ echo "${_ver}.r$(git rev-list HEAD --count).g$(git rev-list HEAD -1 --abbrev-commit)"
}
package() {
- cd bash-scripts/$pkgname
+ cd $pkgname
install -Dm755 $pkgname.sh "$pkgdir/usr/bin/$pkgname.sh"
}