summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian B2018-05-11 14:26:23 +0200
committerFlorian B2018-05-11 14:26:23 +0200
commit3c5ca0c53a2747d421600082bbf0490d65aca557 (patch)
tree9047ec91f1496f246a5753841ad07aed159bc3bc
parente862d781b8a831704ca5745e24184c4f14c9fff5 (diff)
downloadaur-3c5ca0c53a2747d421600082bbf0490d65aca557.tar.gz
corrected versioning to trail git
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD15
2 files changed, 14 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9bfe705b04f..b80eb8fa333 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = powerline-shell
pkgdesc = A pretty prompt for your shell
- pkgver = latest
+ pkgver = r546.73b01d6
pkgrel = 1
url = https://github.com/b-ryan/powerline-shell
arch = any
license = MIT
depends = python
provides = powerline-shell
- source = powerline-shell-latest::https://github.com/b-ryan/powerline-shell/archive/master.tar.gz
- md5sums = 8e33b7a891816a0c58d84159f79b124b
+ source = git://github.com/b-ryan/powerline-shell.git
+ md5sums = SKIP
pkgname = powerline-shell
diff --git a/PKGBUILD b/PKGBUILD
index 160f82de71c..310ba7861aa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,18 +1,25 @@
# Maintainer: Florian B.
pkgname="powerline-shell"
-pkgver='latest'
+pkgver=r546.73b01d6
pkgrel=1
pkgdesc="A pretty prompt for your shell"
arch=("any")
-url="https://github.com/b-ryan/powerline-shell"
+_giturl="://github.com/b-ryan/powerline-shell"
+url="https${_giturl}"
license=("MIT")
provides=("${pkgname}")
depends=("python")
source=(
- "${pkgname}-${pkgver}::${url}/archive/master.tar.gz"
+ "git${_giturl}.git"
+ #${pkgname}-${pkgver}::${url}/archive/master.tar.gz"
)
-md5sums=('8e33b7a891816a0c58d84159f79b124b')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$(pkgname)"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
prepare() {
cd "${srcdir}"