diff options
author | bartus | 2021-07-22 12:22:30 +0200 |
---|---|---|
committer | bartus | 2021-07-22 12:22:30 +0200 |
commit | 4141acfef969456bc78180fa72eace3d87ffb76d (patch) | |
tree | 7138a22a688c3a5361e8ae55b071ffae57f80515 | |
parent | 338da5f5d293938fdc1d0eb13dd6a1bf650df9f6 (diff) | |
download | aur-4141acfef969456bc78180fa72eace3d87ffb76d.tar.gz |
Fix pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 7 insertions, 4 deletions
@@ -1,6 +1,6 @@ pkgbase = scilab-git pkgdesc = A scientific software package for numerical computations. - pkgver = 6.1.0.r10.g8937019ec74 + pkgver = 6.2.0.r216.g81a9cc04933 pkgrel = 1 url = https://www.scilab.org arch = i686 @@ -5,8 +5,9 @@ _pkgname=scilab _fragment="${FRAGMENT:-#branch=master}" +_ver_pop_commit="2797926fe5a3af91029ce4fc018ced0c286e6fe3" pkgname=${_pkgname}-git -pkgver=6.1.0.r10.g8937019ec74 +pkgver=6.2.0.r216.g81a9cc04933 pkgrel=1 pkgdesc='A scientific software package for numerical computations.' arch=('i686' 'x86_64') @@ -48,8 +49,10 @@ sha256sums=('SKIP' pkgver() { cd "${srcdir}/${_pkgname}/${_pkgname}" - - git describe --long --tags --always | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +# Tags are dragging behind +# git describe --long --tags --always | sed -r 's/([^-]*-g)/r\1/;s/-/./g' + scilab_ver=$(printf "%d.%d.%d" $(grep -Po '^SCILAB_VERSION_(MAJOR|MINOR|MAINTENANCE)=\K.*' configure.ac)) + printf "%s.r%s.g%s" "$scilab_ver" "$(git rev-list --count $_ver_pop_commit..HEAD)" "$(git rev-parse --short HEAD)" } prepare(){ |