diff options
author | Fabien Dubosson | 2016-06-08 12:33:22 +0200 |
---|---|---|
committer | Fabien Dubosson | 2016-06-08 12:33:22 +0200 |
commit | f6a54d5b37c2b44e815866d4f68aec119a75c5f0 (patch) | |
tree | 4aaa237452c7b799e8847c9f7e0725f625d9f39f | |
parent | 5e057cd69519ba3e903227375a821d5a04c0219b (diff) | |
download | aur-synchost-git.tar.gz |
Fix pkgver
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 7 |
3 files changed, 14 insertions, 5 deletions
@@ -1,6 +1,8 @@ +# Generated by mksrcinfo v8 +# Wed Jun 8 10:32:48 UTC 2016 pkgbase = synchost-git pkgdesc = A command-line tool to keep an host synchronized - pkgver = 0.0.1 + pkgver = r14.b5e1f6d pkgrel = 1 url = https://github.com/StreakyCobra/synchost changelog = ChangeLog diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1e6c93286c06 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +# Downloaded and generated files +*.log +*.tar +*.tar.xz +*.tar.gz + +# All sub-folders +*/ @@ -2,8 +2,8 @@ pkgname="synchost-git" _pkgname="synchost" -pkgver="0.0.1" -pkgrel="1" +pkgver=r14.b5e1f6d +pkgrel=1 pkgdesc="A command-line tool to keep an host synchronized" url="https://github.com/StreakyCobra/synchost" license=('MIT') @@ -17,8 +17,7 @@ md5sums=('SKIP') pkgver() { cd "${srcdir}/${_pkgname}/" - - git describe --long --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g' + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { |