summaryrefslogtreecommitdiff
path: root/libre/blender-addon-luxrender/PKGBUILD
blob: 541372a2eb40a7e0b2482defe12710db50b355a1 (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: Márcio Silva <coadde@lavabit.com>

_srcname=luxrender
_pkgver=1.3.1
_bldname=blender
_bldver=2.69
_bldep=10
_pkgname=${_srcname::3}${_bldname::5}25
_srcver=ad6536b0dda8

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.$_srcname.net/
license=GPL
depends=(
  $_srcname=$_pkgver
  "$_bldname-libre>=$_bldep:$_bldver"
  "$_bldname-libre<$(($_bldep+1)):${_bldver::2}$((${_bldver:2:4}+1))"
)
provides=($_pkgname=$_pkgver)
conflicts=$_pkgname
replaces=$_pkgname
source=http://src.$_srcname.net/$_pkgname/archive/$_srcver.tar.bz2
sha512sums=7bfd64abde07d9ad90d5e80a95f6fe5478ff65a8ff6965bd3a6c9671907a9a940affa5fb1a593884dc9eb6a5c967eaa1386a3225edc9cbbbb4c20c5d26198aa1

package() {
  a=$srcdir/$_pkgname-$_srcver/src/$_srcname
  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
}

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