blob: 70aab088472e1d66c4debac751875d42573b4222 (
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
45
46
47
48
49
50
51
52
53
54
55
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
_pkgname=luxrender
_pkgver=1.4.0
_pkgverM=${_pkgver%.*}
_bldname=blender
_bldver=2.73
_bldep=15
_srcname=${_pkgname::3}${_bldname::5}25
_srcver=a249c861c2f3
pkgname=$_bldname-addon-$_pkgname
if [[ ${_pkgver/*./} == 0 ]]; then
pkgver=${_pkgver/.*/}.${_pkgverM#*.}.v$_bldver
else
pkgver=$_pkgver.v$_bldver
fi
pkgrel=2
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')
provides=("$_srcname=$_pkgver")
conflicts=("$_srcname")
replaces=("$_srcname")
if [[ ${_pkgver/*./} == 0 ]]; then
source=("http://src.$_pkgname.net/$_srcname/get/v${_pkgver/.*/}${_pkgverM#*.}.tar.bz2")
else
source=("http://src.$_pkgname.net/$_srcname/get/v${_pkgver/.*/}${_pkgverM#*.}${_pkgver/*./}.tar.bz2")
fi
source+=('http://www.gnu.org/licenses/gpl-2.0.txt')
sha512sums=('6d59b739d19beb08e2b46c6628354296c7c3a0cf3318c2925eb9891ce909a97829448a211a9fc8ffb696917fa2d85eb6b11318e4b8a08fff2f49f609fa38d525'
'aee80b1f9f7f4a8a00dcf6e6ce6c41988dcaedc4de19d9d04460cbfb05d99829ffe8f9d038468eabbfba4d65b38e8dbef5ecf5eb8a1b891d9839cda6c48ee957')
prepare() {
sed -i "\|def find_"$_pkgname"_path[(][)]|,+9 d
s|find_"$_pkgname"_path[(][)]|'/usr/bin'|
" $srcdir/$_pkgname-$_srcname-$_srcver/src/$_pkgname/__init__.py
}
package() {
depends=("$_pkgname>=${_pkgver/.*/}.${_pkgverM#*.}" "$_pkgname<${_pkgver/.*/}.$((${_pkgverM#*.}+1))" "$_bldname>=$_bldep:$_bldver" "$_bldname<$(($_bldep+1)):${_bldver/.*/}.$((${_bldver/*./}+1))")
a=$srcdir/$_pkgname-$_srcname-$_srcver/src/$_pkgname
b=$pkgdir/usr/share/$_bldname/$_bldver/scripts/addons
c=$pkgdir/usr/share/licenses/$pkgname
install -vd $b && cp -va $a $b
install -vd $c && install -vm644 $startdir/gpl-2.0.txt $c/GPL-v2.0
# change the search path in exporter so it finds pylux in its new location
sed -i 's|from.*import pylux|import pylux|' $b/$_pkgname/outputs/pure_api.py
}
# vim:set ts=2 sw=2 et:
|