summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTrần Nam Tuấn2022-08-30 21:18:29 +0700
committerTrần Nam Tuấn2022-08-30 21:18:29 +0700
commitc7613450a4336d4c055c2093a9c76f81f6f9624c (patch)
treefbad5db0422b6116cf094299fd7dd32744fbf168 /PKGBUILD
parent646c9ae6cd8d2191705b748d7ff8c4624abf5635 (diff)
downloadaur-c7613450a4336d4c055c2093a9c76f81f6f9624c.tar.gz
Remove "v" prefix from pkgver
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 0eb82a6e3a96..b6075ce00690 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@
pkgname=hunspell-vi-git
provides=('hunspell-vi')
conflicts=('hunspell-vi')
-pkgver=v2.2.0.r35.g507d07e
-pkgrel=1
+pkgver=2.2.0.r35.g507d07e
+pkgrel=2
pkgdesc="Vietnamese dictionaries for Hunspell"
arch=('x86_64')
url="https://github.com/1ec5/hunspell-vi.git"
@@ -15,7 +15,7 @@ sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/hunspell-vi"
- git describe --long --tags | sed 's/-/.r/;s/-/./'
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {