summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteven Allen <steven@stebalien.com>2015-09-24 15:59:47 -0400
committerSteven Allen <steven@stebalien.com>2015-09-24 15:59:47 -0400
commitec894ddfba3dc546a6eb1c28ebc80165e4b4bcb1 (patch)
tree4899ed31bc60e1cf3fe6f0ca59f1ac8f918f6bd2
parenteeb0c5261cea647171948ffea58867f13bbf6d32 (diff)
Better versioning
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8dc172e..14b11ae 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = stapler-git
pkgdesc = Manipulate PDF documents from the command line
- pkgver = 0.2b.45.g66fb06b
+ pkgver = 0.3.2.r3.g66fb06b
pkgrel = 1
url = http://github.com/hellerbarde/stapler
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 79dc074..05adadf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Steven Allen <steven@stebalien.com>
pkgname=stapler-git
-pkgver=0.2b.45.g66fb06b
+pkgver=0.3.2.r3.g66fb06b
pkgrel=1
pkgdesc="Manipulate PDF documents from the command line"
url="http://github.com/hellerbarde/stapler"
@@ -16,7 +16,7 @@ _gitname="stapler"
pkgver() {
cd "$srcdir/$_gitname"
- git describe --always | sed 's|-|.|g'
+ git describe --tags --always | sed -e 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {