summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-02-19 16:49:59 -0200
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-02-19 16:49:59 -0200
commitb400ba046e61f61e96490d8a744fba18dc4b390f (patch)
treea1e6a554c31c8c7b1d1d4f294c52c74281a909ae /libre
parent2be61e2591f1800c0a955453ca6ee771ab1ab7e4 (diff)
downloadabslibre-b400ba046e61f61e96490d8a744fba18dc4b390f.tar.gz
abslibre-b400ba046e61f61e96490d8a744fba18dc4b390f.tar.bz2
abslibre-b400ba046e61f61e96490d8a744fba18dc4b390f.zip
blender-addon-luxrender: fix depends
Diffstat (limited to 'libre')
-rw-r--r--libre/blender-addon-luxrender/PKGBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/libre/blender-addon-luxrender/PKGBUILD b/libre/blender-addon-luxrender/PKGBUILD
index 8392cfc80..70aab0884 100644
--- a/libre/blender-addon-luxrender/PKGBUILD
+++ b/libre/blender-addon-luxrender/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Márcio Silva <coadde@parabola.nu>
_pkgname=luxrender
-_pkgver=1.4
+_pkgver=1.4.0
_pkgverM=${_pkgver%.*}
_bldname=blender
_bldver=2.73
@@ -10,8 +10,12 @@ _srcname=${_pkgname::3}${_bldname::5}25
_srcver=a249c861c2f3
pkgname=$_bldname-addon-$_pkgname
-pkgver=$_pkgver.v$_bldver
-pkgrel=1
+if [[ ${_pkgver/*./} == 0 ]]; then
+ pkgver=${_pkgver/.*/}.${_pkgverM#*.}.v$_bldver
+else
+ pkgver=$_pkgver.v$_bldver
+fi
+pkgrel=2
pkgdesc="$_srcname: A addon for the ${_bldname^} which allows render and export with LuxRender (built for the $_bldname package)"
arch=('any')
url="http://www.$_pkgname.net/"
@@ -19,9 +23,12 @@ license=('GPL2')
provides=("$_srcname=$_pkgver")
conflicts=("$_srcname")
replaces=("$_srcname")
-source=(#"http://src.$_pkgname.net/$_srcname/get/v${_pkgver/.*/}${_pkgverM#*.}${_pkgver/*./}.tar.bz2"
- "http://src.$_pkgname.net/$_srcname/get/v${_pkgver/.*/}${_pkgver/*./}.tar.bz2"
- 'http://www.gnu.org/licenses/gpl-2.0.txt')
+if [[ ${_pkgver/*./} == 0 ]]; then
+ source=("http://src.$_pkgname.net/$_srcname/get/v${_pkgver/.*/}${_pkgverM#*.}.tar.bz2")
+else
+ source=("http://src.$_pkgname.net/$_srcname/get/v${_pkgver/.*/}${_pkgverM#*.}${_pkgver/*./}.tar.bz2")
+fi
+source+=('http://www.gnu.org/licenses/gpl-2.0.txt')
sha512sums=('6d59b739d19beb08e2b46c6628354296c7c3a0cf3318c2925eb9891ce909a97829448a211a9fc8ffb696917fa2d85eb6b11318e4b8a08fff2f49f609fa38d525'
'aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957')
@@ -32,7 +39,7 @@ prepare() {
}
package() {
- depends=("$_pkgname>=$_pkgver" "$_pkgname<${_pkgver/.*/}.$((${_pkgverM#*.}+1)).$((${_pkgver/*./}==0))" "$_bldname>=$_bldep:$_bldver" "$_bldname<$(($_bldep+1)):${_bldver/.*/}.$((${_bldver/*./}+1))")
+ depends=("$_pkgname>=${_pkgver/.*/}.${_pkgverM#*.}" "$_pkgname<${_pkgver/.*/}.$((${_pkgverM#*.}+1))" "$_bldname>=$_bldep:$_bldver" "$_bldname<$(($_bldep+1)):${_bldver/.*/}.$((${_bldver/*./}+1))")
a=$srcdir/$_pkgname-$_srcname-$_srcver/src/$_pkgname
b=$pkgdir/usr/share/$_bldname/$_bldver/scripts/addons