summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorrmu2018-10-11 18:32:21 -0500
committerrmu2018-10-11 18:32:21 -0500
commit5d136cea8e21de7d32bdf014592965fb9370aa73 (patch)
treef29655b7e79d29fcf57405d1e63bdc54d90b49aa
parentbd1838e2873df449b3258ded31d6a0bf113acf80 (diff)
downloadaur-5d136cea8e21de7d32bdf014592965fb9370aa73.tar.gz
change versioning scheme
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 7 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bd9cfc7e498..dfe7bb5ccf6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = swayblocks
pkgdesc = another block manager for i3bar/swaybar
- pkgver = 0.0.6
+ pkgver = r45.9257a84
pkgrel = 1
url = https://github.com/rei2hu/swayblocks
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 11972971e64..7dc266b0f9a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: reimu <r2hkri at gmail com>
pkgname=swayblocks
-pkgver=0.0.6
+pkgver=r45.9257a84
pkgrel=1
pkgdesc="another block manager for i3bar/swaybar"
arch=("i686" "x86_64")
@@ -18,6 +18,11 @@ optdepends=(
source=("git+$url")
md5sums=("SKIP")
+pkgver() {
+ cd "$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
build() {
cd "$srcdir/$pkgname"
make create