updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / indigo / PKGBUILD
blobc83137e097742dd372bdefa377ca758e027a3cfe
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
3 # Contributor: perpetrator
4 pkgname=indigo
5 pkgver=2.4.13
6 pkgrel=1
7 pkgdesc="Physically-based unbiased render engine"
8 arch=('x86_64' 'i686')
9 url="http://www.indigorenderer.com/"
10 license=('custom')
11 depends=('wxgtk' 'libtiff4' 'libjpeg6')
12 backup=('opt/indigo/inifile.xml')
13 options=(docs)
14 install=indigo.install
15 if [ $CARCH = "x86_64" ]; then
16   source=(http://www.indigorenderer.com/dist/beta/indigo_x64_v2.4.13.tar.gz \
17           indigo.desktop indigo.png indigo.sh indigo_console.sh \
18           http://www.indigorenderer.com/dist/exporters/blendigo/blendigo-linux-2.4.Stable.2.tar.gz)
19   md5sums=('bec2669449d62180516c8fd4d5c751ef'
20          '3d1ee12344502bda3a41f496e97a4cf4'
21          '19fde0fa8b9151f7d2aa56710a1296d6'
22          'a186f890883ab81744904a93ff91f56e'
23          '09062de09facc7652f8fe9e6e4de635f'
24          '401bacee3fe7e8b1272f7e02a0978257')
25 else
26   source=(http://www.indigorenderer.com/dist/beta/indigo_v2.4.13.tar.gz \
27           indigo.desktop indigo.png indigo.sh indigo_console.sh \
28           http://www.indigorenderer.com/dist/exporters/blendigo/blendigo-linux-2.4.Stable.2.tar.gz)
29   md5sums=('bec2669449d62180516c8fd4d5c751ef'
30          '3d1ee12344502bda3a41f496e97a4cf4'
31          '19fde0fa8b9151f7d2aa56710a1296d6'
32          'a186f890883ab81744904a93ff91f56e'
33          '09062de09facc7652f8fe9e6e4de635f'
34          '401bacee3fe7e8b1272f7e02a0978257')
37 build() {
38   mkdir -p "$pkgdir/opt"
40   cd "$srcdir/dist"
42   if [ $CARCH = "x86_64" ]; then
43     cp -a "${pkgname}_x64_v${pkgver}" \
44       "$pkgdir/opt" || return 1
45     mv "$pkgdir/opt/${pkgname}_x64_v${pkgver}" "$pkgdir/opt/indigo"
46     cd "${pkgname}_x64_v${pkgver}"
47   else
48     cp -a "${pkgname}_v${pkgver}" \
49       "$pkgdir/opt" || return 1
50     mv "$pkgdir/opt/${pkgname}_v${pkgver}" "$pkgdir/opt/indigo"
51     cd "${pkgname}_v${pkgver}"
52   fi
54   touch "$pkgdir"/opt/indigo/log.txt
55   chmod 777 "$pkgdir"/opt/indigo/log.txt
56   rm "$pkgdir"/opt/indigo/changelog.txt
57   rm -rf "$pkgdir"/opt/indigo/testscenes
59   # documentation
60   mkdir -p "$pkgdir"/usr/share/doc/$pkgname
61   mv "$pkgdir/opt/indigo/Indigo Manual.pdf" "$pkgdir"/usr/share/doc/$pkgname/IndigoManual.pdf
63   cd "$srcdir"
65   # install scripts
66   install -D -m755 indigo.sh "$pkgdir"/usr/bin/indigo
67   install -D -m755 indigo_console.sh "$pkgdir"/usr/bin/indigo_console
69   # install desktop file and icon
70   install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
71   install -Dm644 $pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
73   # install the license
74   mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
75   mv "$pkgdir"/opt/indigo/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
77   # install blendigo
78   cd "$srcdir/blendigo-linux-2.4.Stable.2/sources"
79   mkdir -p "$pkgdir"/usr/share/blender/scripts/bpydata/
80   install -Dm644 blendigo.py "$pkgdir/usr/share/blender/scripts/"
81   cp -r blendigopkg "$pkgdir/usr/share/blender/scripts/bpydata/"
82   echo "/opt/indigo" > "$pkgdir"/usr/share/blender/scripts/bpydata/IndigoWrapper.conf
85 # vim:set ts=2 sw=2 et: