summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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