summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-06 20:23:20 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-06 20:23:20 -0300
commitdc7d5bfd895d59ee43edaa7697c11f9a4266a4a0 (patch)
treea659da0ff69b0f707779101989db7e337a21ea92
parentcef451bdcd3f10fe79c95b18d32231f229913ea0 (diff)
blender-addon-luxrender: fix PKGBUILD
-rw-r--r--libre/blender-addon-luxrender/PKGBUILD44
1 files changed, 21 insertions, 23 deletions
diff --git a/libre/blender-addon-luxrender/PKGBUILD b/libre/blender-addon-luxrender/PKGBUILD
index 0956d9645..25e0930c1 100644
--- a/libre/blender-addon-luxrender/PKGBUILD
+++ b/libre/blender-addon-luxrender/PKGBUILD
@@ -1,43 +1,41 @@
# Maintainer: Márcio Silva <coadde@parabola.nu>
-_srcname=luxrender
+_pkgname=luxrender
_pkgver=1.3.1
_bldname=blender
_bldver=2.71
_bldep=14
-_pkgname=${_srcname::3}${_bldname::5}25
+_srcname=${_pkgname::3}${_bldname::5}25
_srcver=ad6536b0dda8
-pkgname=$_bldname-addon-$_srcname
+pkgname=$_bldname-addon-$_pkgname
pkgver=$_pkgver.v$_bldver
-pkgrel=2
-pkgdesc="$_pkgname: A addon for the ${_bldname^} which allows render and export with LuxRender (built for the $_bldname package)"
-arch=any
-url=http://www.$_srcname.net/
-license=GPL
-depends=(
- $_srcname=$_pkgver
- "$_bldname>=$_bldep:$_bldver"
- "$_bldname<$(($_bldep+1)):${_bldver::2}$((${_bldver:2:4}+1))"
-)
-provides=($_pkgname=$_pkgver)
-conflicts=($_pkgname)
-replaces=($_pkgname)
-source=http://src.$_srcname.net/$_pkgname/get/v${_pkgver::1}${_pkgver:2:1}${_pkgver:4:1}.tar.bz2
-sha512sums=db2fd1063320825dc55c456b1596c25ccd7298ca331b32768ccc32c80e359e515aabb0c972f21ae33d16f8815c07fef7fdd6ffc7fade98a100fb824dc0a5905e
+pkgrel=3
+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/"
+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))")
+provides=("$_srcname=$_pkgver")
+conflicts=("$_srcname")
+replaces=("$_srcname")
+source=("http://src.$_pkgname.net/$_srcname/get/v${_pkgver::1}${_pkgver:2:1}${_pkgver:4:1}.tar.bz2"
+ 'http://www.gnu.org/licenses/gpl-2.0.txt')
+sha512sums=('db2fd1063320825dc55c456b1596c25ccd7298ca331b32768ccc32c80e359e515aabb0c972f21ae33d16f8815c07fef7fdd6ffc7fade98a100fb824dc0a5905e'
+ 'aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957')
prepare() {
- sed -i "\|def find_luxrender_path[(][)]|,+9 d
- s|find_luxrender_path[(][)]|'/usr/bin'|
- " $srcdir/$_srcname-$_pkgname-$_srcver/src/$_srcname/__init__.py
+ sed -i "\|def find_"$_pkgname"_path[(][)]|,+9 d
+ s|find_"$_pkgname"_path[(][)]|'/usr/bin'|
+ " $srcdir/$_pkgname-$_srcname-$_srcver/src/$_pkgname/__init__.py
}
package() {
- a=$srcdir/$_srcname-$_pkgname-$_srcver/src/$_srcname
+ a=$srcdir/$_pkgname-$_srcname-$_srcver/src/$_pkgname
b=$pkgdir/usr/share/$_bldname/$_bldver/scripts/addons
install -d -m755 $b && cp -a $a $b
# change the search path in exporter so it finds pylux in its new location
- sed -i 's|from.*import pylux|import pylux|' $b/$_srcname/outputs/pure_api.py
+ sed -i 's|from.*import pylux|import pylux|' $b/$_pkgname/outputs/pure_api.py
}
# vim:set ts=2 sw=2 et: