diff options
author | Yen Chi Hsuan | 2016-06-13 23:32:05 +0800 |
---|---|---|
committer | Yen Chi Hsuan | 2016-06-13 23:32:05 +0800 |
commit | 66c527e91a91ce53482c40f1274307fa94014c85 (patch) | |
tree | 9e7a6e02c5e65c4eacf6f6ddc353cedea4487a93 | |
parent | 8fbcd677633c41da013eec7ba97083aed1e2b23e (diff) | |
download | aur-66c527e91a91ce53482c40f1274307fa94014c85.tar.gz |
New versioning scheme
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -1,9 +1,10 @@ # Generated by mksrcinfo v8 -# Mon Jun 13 14:25:04 UTC 2016 +# Mon Jun 13 15:32:03 UTC 2016 pkgbase = libchewing-git pkgdesc = Intelligent Chinese phonetic input method - pkgver = 1626.583bc02 + pkgver = 0.5.1.r8.g583bc02 pkgrel = 1 + epoch = 1 url = http://chewing.im/ arch = i686 arch = x86_64 @@ -3,8 +3,9 @@ _pkgname=libchewing pkgname=libchewing-git -pkgver=1626.583bc02 +pkgver=0.5.1.r8.g583bc02 pkgrel=1 +epoch=1 pkgdesc='Intelligent Chinese phonetic input method' url='http://chewing.im/' arch=('i686' 'x86_64') @@ -17,8 +18,11 @@ source=("git+https://github.com/chewing/libchewing/") md5sums=('SKIP') pkgver() { - cd ${_pkgname} - echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD) + cd "${_pkgname}" + ( set -o pipefail + git describe --long --tag 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) } build() { |