diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2,7 +2,7 @@ pkgname=utf8cpp-git pkgver=3.2.3.r1.g2ad9957 -pkgrel=1 +pkgrel=2 pkgdesc="UTF-8 with C++ in a Portable Way" arch=('any') url="https://github.com/nemtrif/utfcpp" @@ -23,7 +23,7 @@ prepare() { pkgver() { cd "utfcpp" - _tag=$(git tag -l --sort -v:refname | grep -P '^v?[\d\.]+$' | head -n1) + _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//' |