updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / blender2.5a2 / PKGBUILD
blobf081bb34ecb699c1ac9c787bbb7663e53216d55d
1 # Maintainer: David H. Bronke <david.bronke@g33xnexus.com>
2 # Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>
4 pkgname=blender2.5a2
5 pkgver=2.5a2
6 pkgrel=4
7 pkgdesc="A fully integrated 3D graphics creation suite (binary version)"
8 arch=('i686' 'x86_64')
9 url="http://blender.org/"
10 license=('GPL')
11 depends=('libgl' 'libjpeg6' 'libx11' 'libxau' 'libxcb' 'libxdamage' 'libxdmcp' 'libxext' 'libxfixes' 'libxi' 'libxxf86vm' 'python3' 'sdl' 'zlib' 'libpng12' 'libsamplerate')
12 makedepends=('librsvg')
13 provides=('blender')
14 conflicts=('blender')
15 install=blender.install
16 source=('blender.desktop')
17 sha1sums=('e33f0e8a90e4c9f159c2de987e3d48d1fea27ce6')
19 case ${CARCH} in
20   i686)
21     source=(${source[@]} 'http://download.blender.org/release/Blender2.50alpha/blender-2.5-alpha2-linux-glibc27-i686.tar.bz2')
22     sha1sums=(${sha1sums[@]} '089f0376ac06783ecb68ff205a65141913ab8c7e')
23     ;;
24   x86_64)
25     source=(${source[@]} 'http://download.blender.org/release/Blender2.50alpha/blender-2.5-alpha2-linux-glibc27-x86_64.tar.bz2')
26     sha1sums=(${sha1sums[@]} 'eab530739634f2a4562c6c67c5e7b69fcb3088f6')
27     ;;
28 esac
30 build() {
31   mkdir -p $pkgdir/usr/{share/blender,share/icons/hicolor,share/pixmaps,bin}
32   case ${CARCH} in
33     i686)
34       cd $srcdir/blender-2.5-alpha2-linux-glibc27-i686
35       ;;
36     x86_64)
37       cd $srcdir/blender-2.5-alpha2-linux-glibc27-x86_64
38       ;;
39   esac
41   cp -r .blender/locale $pkgdir/usr/share
42   cp -r .blender/scripts $pkgdir/usr/share/blender
43   cp -r icons/* $pkgdir/usr/share/icons/hicolor
44   cp icons/scalable/blender.svg $pkgdir/usr/share/pixmaps/
45   cp blender $pkgdir/usr/bin
46   cp blender-softwaregl $pkgdir/usr/bin
48   # stolen from blender in extra
49   install -Dm644 $srcdir/blender.desktop $pkgdir/usr/share/applications/blender.desktop