diff options
author | Dr-Noob | 2021-01-09 22:58:18 +0100 |
---|---|---|
committer | Dr-Noob | 2021-01-09 22:58:18 +0100 |
commit | 64bf65a2d18370fd35a5eedf6225ca4e19b6a455 (patch) | |
tree | 40f273d0db7b6b6001b66e7d832fdeaa626f243d | |
parent | 51076cae084fc9edff547cff12b51cd77a46b492 (diff) | |
download | aur-64bf65a2d18370fd35a5eedf6225ca4e19b6a455.tar.gz |
Fix errors as suggested by FabioLolix
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 10 insertions, 5 deletions
@@ -1,14 +1,14 @@ pkgbase = peakperf-git pkgdesc = Benchmark to achieve peak performance on x86_64 CPUs - pkgver = 1.0 + pkgver = v1.0.r0.g3a5207a pkgrel = 1 url = https://github.com/Dr-Noob/peakperf arch = x86_64 license = MIT makedepends = git + makedepends = make depends = glibc depends = gcc-libs - depends = make source = git+https://github.com/Dr-Noob/peakperf md5sums = SKIP @@ -1,17 +1,22 @@ # Maintainer: Dr-Noob <peibolms at gmail dot com> _name=peakperf pkgname="$_name-git" -pkgver=1.0 +pkgver=v1.0.r0.g3a5207a pkgrel=1 pkgdesc="Benchmark to achieve peak performance on x86_64 CPUs" arch=('x86_64') url="https://github.com/Dr-Noob/peakperf" license=('MIT') -depends=('glibc' 'gcc-libs' 'make') -makedepends=('git') +depends=('glibc' 'gcc-libs') +makedepends=('git' 'make') source=("git+https://github.com/Dr-Noob/peakperf") md5sums=('SKIP') +pkgver() { + cd "$srcdir/$_name" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { cd "$srcdir/$_name" make |