updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / indigo-free / PKGBUILD
blobfa9fb3fad487ed173a85458b136722de74b3be3a
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: perpetrator
3 pkgname=indigo-free
4 pkgver=1.0.9_2
5 _expver=v109
6 pkgrel=1
7 pkgdesc="Physically-based unbiased render engine"
8 arch=('i686' 'x86_64')
9 url="http://www.indigorenderer.com"
10 license=('custom')
11 depends=('wxgtk')
12 conflicts=('indigo')
13 backup=('opt/indigo/inifile.xml')
14 options=(docs)
15 install=indigo.install
16 if [ $CARCH = "i686" ]; then
17   source=(http://www.indigorenderer.com/dist/indigo_linux_v${pkgver}.tar.gz \
18           indigo.desktop indigo.png indigo.sh indigo_console.sh \
19           http://www.smartden.de/uploads/File/Indigo/blendigo_$_expver.zip)
20   md5sums=('a4855e1312a78462028484737c1f65fd'
21            '3d1ee12344502bda3a41f496e97a4cf4'
22            '19fde0fa8b9151f7d2aa56710a1296d6'
23            'a186f890883ab81744904a93ff91f56e'
24            '09062de09facc7652f8fe9e6e4de635f'
25            '5810b4ceb64a2e255a6afc240a1b008a')
26 elif [ $CARCH = "x86_64" ]; then
27   source=(http://www.indigorenderer.com/dist/indigo_x64_linux_v${pkgver}.tar.gz \
28           indigo.desktop indigo.png indigo.sh indigo_console.sh \
29           http://www.smartden.de/uploads/File/Indigo/blendigo_$_expver.zip)
30   md5sums=('9228bdbf30f0999301614ad9ebc77235'
31            '3d1ee12344502bda3a41f496e97a4cf4'
32            '19fde0fa8b9151f7d2aa56710a1296d6'
33            'a186f890883ab81744904a93ff91f56e'
34            '09062de09facc7652f8fe9e6e4de635f'
35            '5810b4ceb64a2e255a6afc240a1b008a')
38 build() {
39   mkdir -p "$pkgdir"/opt
41   if [ $CARCH = "i686" ]; then
42     cp -a "$srcdir"/indigo_linux_v${pkgver} \
43       "$pkgdir"/opt/indigo
44   elif [ $CARCH = "x86_64" ]; then
45     cp -a $srcdir/indigo_x64_linux_v${pkgver} \
46       $pkgdir/opt/indigo
47   fi
49   touch "$pkgdir"/opt/indigo/log.txt
50   chmod 777 "$pkgdir"/opt/indigo/log.txt
51   chmod 1777 "$pkgdir"/opt/indigo
52   chmod 1777 "$pkgdir"/opt/indigo/renders
53   chmod 1777 "$pkgdir"/opt/indigo/tree_cache
54   rm "$pkgdir"/opt/indigo/changelog.txt
55   rm -rf "$pkgdir"/opt/indigo/testscenes
56   mkdir -p "$pkgdir"/usr/share/doc/indigo
57   mv "$pkgdir/opt/indigo/Indigo Manual.pdf" "$pkgdir"/usr/share/doc/indigo/IndigoManual.pdf
58   
59   install -D -m755 "$srcdir"/indigo.sh "$pkgdir"/usr/bin/indigo
60   install -D -m755 "$srcdir"/indigo_console.sh "$pkgdir"/usr/bin/indigo_console
61   # install desktop file and icon
62   install -D -m644 "$srcdir"/indigo.desktop "$pkgdir"/usr/share/applications/indigo.desktop
63   install -D -m644 "$srcdir"/indigo.png "$pkgdir"/usr/share/pixmaps/indigo.png
64   # install the license
65   mkdir -p "$pkgdir"/usr/share/licenses/indigo
66   mv "$pkgdir"/opt/indigo/license.txt "$pkgdir"/usr/share/licenses/indigo/license.txt
67   # install blendigo
68   install -D -m644 "$srcdir"/blendigo_$_expver.py "$pkgdir"/usr/share/blender/scripts/blendigo.py
69   mkdir -p "$pkgdir"/usr/share/blender/scripts/bpydata/
70   echo "/opt/indigo" > "$pkgdir"/usr/share/blender/scripts/bpydata/IndigoWrapper.conf
71   cp -r "$srcdir"/previews "$pkgdir"/opt/indigo
74 # vim:set ts=2 sw=2 et: