diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = editorconfig-geany-git pkgdesc = EditorConfig plugin for Geany - pkgver = r26.f03782f + pkgver = 0.2.r4.gb55ebcb pkgrel = 1 url = https://github.com/editorconfig/editorconfig-geany arch = i686 @@ -9,10 +9,9 @@ pkgbase = editorconfig-geany-git makedepends = git depends = geany depends = editorconfig-core-c - provides = editorconfig-geany + provides = editorconfig-geany=0.2.r4.gb55ebcb conflicts = editorconfig-geany source = git+https://github.com/editorconfig/editorconfig-geany.git sha256sums = SKIP pkgname = editorconfig-geany-git - @@ -1,7 +1,7 @@ # Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> pkgname=editorconfig-geany-git -pkgver=r26.f03782f +pkgver=0.2.r4.gb55ebcb pkgrel=1 pkgdesc="EditorConfig plugin for Geany" arch=('i686' 'x86_64') @@ -9,7 +9,7 @@ url="https://github.com/editorconfig/editorconfig-geany" license=('GPL') depends=('geany' 'editorconfig-core-c') makedepends=('git') -provides=('editorconfig-geany') +provides=("editorconfig-geany=$pkgver") conflicts=('editorconfig-geany') source=('git+https://github.com/editorconfig/editorconfig-geany.git') sha256sums=('SKIP') @@ -18,7 +18,10 @@ sha256sums=('SKIP') pkgver() { cd "editorconfig-geany" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + _tag=$(git tag -l --sort -v:refname | grep -E '^v?[0-9\.]+$' | head -n1) + _rev=$(git rev-list --count $_tag..HEAD) + _hash=$(git rev-parse --short HEAD) + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//' } build() { |