summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Falk2016-01-10 16:56:25 +0100
committerMax Falk2016-01-10 16:56:25 +0100
commite953278def97d1d22169ef4eb203395e5259bb7d (patch)
tree0e7cf4425aeed42182b1b8041e4af64ac635436b
parentf45fb955c01f62f0a326b67532e34d153ba5d28e (diff)
downloadaur-e953278def97d1d22169ef4eb203395e5259bb7d.tar.gz
use tags in pkgver
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD4
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..cc970232f2a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+rcm-git/
+src/
+*.tar.xz \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index c20d1714a0d..6fb1bad6388 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
_pkgname=rcm
pkgname=${_pkgname}-git
-pkgver=r184.fbb301d
+pkgver=v1.3.0.r9.gfbb301d
pkgrel=1
pkgdesc="rc file (dotfiles) management"
arch=("any")
@@ -19,7 +19,7 @@ sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {