summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjD91mZM22017-12-28 08:36:33 +0100
committerjD91mZM22017-12-28 08:37:43 +0100
commit169d0293369e1bd2dd02c775f841545b441cb2c9 (patch)
tree86f266d791f2c172af729c1987274f0c0ca88404
parent1d490f69ab3eefa0e8d3ebebbf6acd52f7970246 (diff)
downloadaur-169d0293369e1bd2dd02c775f841545b441cb2c9.tar.gz
Fix pkgver() code
Doing this from mobile. It is pain.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8c497819d98..684c0bbeeaf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = aur-creator-tools-git
pkgdesc = Small tools to create and maintain AUR packages
- pkgver = 7ceae9b
+ pkgver = r6.7ceae9b
pkgrel = 1
url = https://github.com/jD91mZM2/aur-creator-tools
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 8aa17c272fc..ec091f8652b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: jD91mZM2 <me@krake.one>
pkgname="aur-creator-tools-git"
-pkgver=7ceae9b
+pkgver=r6.7ceae9b
pkgrel=1
pkgdesc="Small tools to create and maintain AUR packages"
url="https://github.com/jD91mZM2/aur-creator-tools"
@@ -13,8 +13,8 @@ source=("$pkgname::git+https://github.com/jD91mZM2/aur-creator-tools")
sha256sums=("SKIP")
pkgver() {
- cd "$srcdir/$pkgname"
- git rev-parse --short HEAD | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {