From d042bf91ee42e0729f6ad1664b2573b65d8a46fb Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 2 Jan 2015 23:44:33 +0100 Subject: swig: update for automagical pkgver() --- swig-git/PKGBUILD | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'swig-git') 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 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 -- cgit v1.2.3