blob: b381aca5ce3c9398a95d777fd68164d11f10fb69 (
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
|
# Maintainer: Lubosz Sarnecki <lubosz@gmail.com>
# Original Maintainer: Micael Dias
pkgname=luxblend25-hg
pkgver=3789.456ed1eb8aef
pkgrel=1
pkgdesc="LuxRender exporter plugin for Blender"
arch=('any')
url="http://www.luxrender.net/"
license=('GPL')
depends=('luxrender' 'blender')
makedepends=('mercurial')
conflicts=('luxblend25')
source=("hg+https://bitbucket.org/luxrender/luxblend25")
md5sums=("SKIP")
_hgrepo="luxblend25"
pkgver() {
cd $_hgrepo
echo $(hg identify -n).$(hg identify -i)
}
package() {
_blender=$(blender -v | head -n1 | cut -f2 -d ' ')
cd $_hgrepo
install -d -m755 "$pkgdir"/usr/share/blender/$_blender/scripts/addons
cp -a "$srcdir"/$_hgrepo/src/luxrender \
"$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/luxrender/outputs/pure_api.py"
}
# vim:set ts=2 sw=2 et:
|