summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabien Dubosson2016-06-08 12:33:22 +0200
committerFabien Dubosson2016-06-08 12:33:22 +0200
commitf6a54d5b37c2b44e815866d4f68aec119a75c5f0 (patch)
tree4aaa237452c7b799e8847c9f7e0725f625d9f39f
parent5e057cd69519ba3e903227375a821d5a04c0219b (diff)
downloadaur-f6a54d5b37c2b44e815866d4f68aec119a75c5f0.tar.gz
Fix pkgver
-rw-r--r--.SRCINFO4
-rw-r--r--.gitignore8
-rw-r--r--PKGBUILD7
3 files changed, 14 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eda1b836e847..f3e2aba2edd8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
+*/
diff --git a/PKGBUILD b/PKGBUILD
index da115b12376c..c3ed511e45a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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() {