summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/mitsuba/PKGBUILD3
1 files changed, 2 insertions, 1 deletions
diff --git a/pcr/mitsuba/PKGBUILD b/pcr/mitsuba/PKGBUILD
index c0116cd21..5d033ce2c 100644
--- a/pcr/mitsuba/PKGBUILD
+++ b/pcr/mitsuba/PKGBUILD
@@ -9,6 +9,7 @@ _build_add=yes
_pkgname=mitsuba
_pkgver=0.5.0
+_pkgverM=${_pkgver%.*}
_pkgdat=20140225
_pkgrev=2030
_pkgrel=5
@@ -120,7 +121,7 @@ package_blender-addon-mitsuba() {
pkgdesc="A addon for the ${_bldname^} which allows render and export with Mitsuba (built for the $_bldname package)"
arch=('any')
license=('GPL2')
- depends=("$_pkgname>=$_pkgver" "$_pkgname<${_pkgver::1}.$((${_pkgver:2:1}+1)).$((${_pkgver:4}==0))" "$_bldname>=$_bldep:$_bldver" "$_bldname<$(($_bldep+1)):${_bldver::1}.$((${_bldver:2}+1))")
+ depends=("$_pkgname>=$_pkgver" "$_pkgname<${_pkgver/.*/}.$((${_pkgverM#*.}+1)).$((${_pkgver/*./}==0))" "$_bldname>=$_bldep:$_bldver" "$_bldname<$(($_bldep+1)):${_bldver/.*/}.$((${_bldver/*./}+1))")
makedepends=()
cd $srcdir/$_addname-$_addver.$_addrev