summaryrefslogtreecommitdiff
path: root/libre/luxblend25/PKGBUILD
blob: 3ce9b57db04c17fcbc9e7aeca5ee60d2da9bc996 (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
38
39
40
41
42
43
44
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
pkgname=luxblend25
pkgver=1.0rc4
_pkgver=06194cf93745
_blender=2.63
pkgrel=1
pkgdesc='A LuxRender exporter for Blender-libre'
arch=(
  any
)
url=http://www.{pkgname::3}render.net/
license=(
  GPL
)
depends=(
  blender=$_blender
  ${pkgname::3}render
)
replaces=(
  $pkgname
)
conflicts=(
  $pkgname
)
provides=(
  $pkgname=$pkgver
)
source=(
  https://bitbucket.org/${pkgname::3}render/$pkgname/get/$_pkgver.tar.bz2
)
md5sums=(
  c5719c2a0e8567cd9f0aef429a2996f0
)

package() {
  install -d -m755 $pkgdir/usr/share/blender/$_blender/scripts/addons
  cp -a $srcdir/${pkgname::3}render-$pkgname-$_pkgver/src/${pkgname::3}render \
    $pkgdir/usr/share/blender/$_blender/scripts/addons
  # change the search path in exporter so it finds pylux in its new location
  sed -i 's|from.*import pylux|import pylux|' $pkgdir/usr/share/blender/$_blender/scripts/addons/${pkgname::3}render/outputs/pure_api.py
}

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