summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-01-02 23:44:33 +0100
committerPhilipp Gesang <phg@phi-gamma.net>2015-01-02 23:44:33 +0100
commitd042bf91ee42e0729f6ad1664b2573b65d8a46fb (patch)
tree21cd1b921c7735f7a23a877c25f2f2119ff3ca56
parent48aafd5fea7dab9c79e011c65d63f3b9d1dcddd0 (diff)
downloadarch-packages-d042bf91ee42e0729f6ad1664b2573b65d8a46fb.tar.gz
swig: update for automagical pkgver()
-rw-r--r--swig-git/PKGBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/swig-git/PKGBUILD b/swig-git/PKGBUILD
index 1004ad6..b616834 100644
--- a/swig-git/PKGBUILD
+++ b/swig-git/PKGBUILD
@@ -5,8 +5,8 @@
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
pkgname=swig-git
-pkgver=2.0.11
pkgrel=1
+pkgver=rel.3.0.3.r4.gaa4d034
pkgdesc="Generate scripting interfaces to C/C++ code"
arch=("i686" "x86_64")
url="http://www.swig.org/"
@@ -14,7 +14,7 @@ license=("custom")
depends=("zlib" "pcre")
makedepends=("git" "yodl")
conflicts=("swig")
-provides=("swig" "swig=2.0.11")
+provides=("swig")
_gitroot="https://github.com/swig/swig"
_gitname="swig"
@@ -23,6 +23,11 @@ _gitbranch="master"
source=("${_gitname}::git+https://github.com/swig/${_gitname}#branch=${_gitbranch}")
sha1sums=("SKIP")
+pkgver() {
+ cd "${srcdir}/${_gitname}"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
@@ -52,3 +57,5 @@ package() {
install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
install -D -m644 LICENSE-UNIVERSITIES "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE-UNIVERSITIES
}
+
+# vim:ft=sh:ts=8:et:sw=2