summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2019-02-17 18:43:36 +0100
committerhaawda2019-02-17 18:43:36 +0100
commit98ec147c80653f15677a57c15344ddca36f1e21b (patch)
treedfb3498257ac5831d34b051845814898122b2212
parent1005ab87902555789f14e6a025891238f8f0d50e (diff)
downloadaur-98ec147c80653f15677a57c15344ddca36f1e21b.tar.gz
rewrite pkgver
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
2 files changed, 5 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9f12e630c32..05fde27d07a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = emacs-company-lsp-git
pkgdesc = Company completion backend for lsp-mod
- pkgver = r48.82c3f1a
+ pkgver = 2.1.0r0.g4eb6949
pkgrel = 1
url = https://github.com/tigersoldier/company-lsp
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 17963b6293c..cd107abda47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,11 @@
-# Maintainer: sballert <sballert@posteo.de>
+# Contributor: sballert <sballert@posteo.de>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
_gituser="tigersoldier"
_gitrepo="company-lsp"
pkgname=emacs-company-lsp-git
-pkgver=r48.82c3f1a
+pkgver=2.1.0r0.g4eb6949
pkgrel=1
pkgdesc="Company completion backend for lsp-mod"
url="https://github.com/${_gituser}/${_gitrepo}"
@@ -19,7 +20,7 @@ sha256sums=('SKIP')
pkgver() {
cd "$_gitrepo"
- printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
+ git describe --tags --long | sed 's+-+r+' | tr - .
}
build() {