diff options
author | Chocobo1 | 2023-04-08 03:31:26 +0800 |
---|---|---|
committer | Chocobo1 | 2023-04-08 03:32:23 +0800 |
commit | 75a5f85731a8962ce349ab330ed43fe418472c59 (patch) | |
tree | 3405488085dd9caaa4bf2fe25ec84e220ee4064a /PKGBUILD | |
parent | 5ff2cc4f4d632c89f3c2e525d0b2969f0d283a47 (diff) | |
download | aur-editorconfig-geany-git.tar.gz |
upgpkg: editorconfig-geany-git 0.2.r4.gb55ebcb-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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() { |