summaryrefslogtreecommitdiff
path: root/libre/blender-addon-luxrender/PKGBUILD
blob: 686dbe9b2d49c384245d07adbeffb247cba50bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>

_srcname=luxrender
_pkgver=1.2.1
_bldname=blender
_bldver=2.68
_bldep=9
_pkgname=${_srcname::3}${_bldname::5}25
_srcver=c9deae0646d0

pkgname=$_bldname-addon-$_srcname
pkgver=$_pkgver.v$_bldver
pkgrel=1
pkgdesc="$_pkgname: A addon for the ${_bldname^} which allows render and export with LuxRender (built for the $_bldname-libre package)"
arch=any
url=http://www.${pkgname:14}.net/
license=GPL
depends=(
  ${pkgname:14}=$_pkgver
  "$_bldname>=$(($_bldep-1)):$_bldver"
  "$_bldname<$_bldep:${_bldver::2}$((${_bldver:2:4}+1))"
)
provides=($_pkgname=$_pkgver)
conflicts=$_pkgname
replaces=$_pkgname
source=http://src.${pkgname:14}.net/$_pkgname/archive/$_srcver.tar.bz2
sha512sums=e8d93d5d9d73c1cd4f2008697bd9a8a125d08910aed3f4d3e4bcd290810d673aa663c327fc2cb7ac983cb3439a6996431c39bc3a2f0b6ed05ce5d0b8398ece92

package() {
  a=$srcdir/$_pkgname-$_srcver/src/${pkgname:14}
  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/${pkgname:14}/outputs/pure_api.py
}

# vim:set ts=2 sw=2 et: