1 # Contributor: Jeroen Volman <jeroenvolman@gmail.com>
5 pkgdesc="Subversion version of Blender 2.49 optimized for current system"
7 url="http://blender.org/"
8 depends=('libgl' 'mesa' 'libjpeg' 'libpng' 'openexr' 'gettext' 'python' 'sdl' 'ffmpeg' 'openal')
9 makedepends=('subversion' 'yasm')
13 install=blender.install
14 source=(blender.desktop blender.sh blenderplayer.sh user-config.py)
15 md5sums=('1aaea0e3afb460368b5860ca6fcaa7f8'
16 '35f3fd5f0832776abb1991405c23fe74'
17 '831e28d0cd2ac983d23002f06254d031'
18 'ed784c1f8cc541ae8a9a8e61492931a2')
20 _svntrunk="https://svn.blender.org/svnroot/bf-blender/branches/blender2.4"
26 msg "Checking out Blender source from $_svntrunk..."
27 svn co $_svntrunk -r $pkgver $_svnmod
28 msg "Checkout complete or server timeout..."
31 cp $srcdir/user-config.py $srcdir/$_svnmod
35 msg "Compiling Blender..."
36 python scons/scons.py || return 1
39 install -D -m755 $srcdir/blender.sh $pkgdir/usr/bin/blender
40 install -D -m755 $srcdir/blenderplayer.sh $pkgdir/usr/bin/blenderplayer
41 install -D -m644 $srcdir/blender.desktop \
42 $pkgdir/usr/share/applications/blender.desktop
44 cd $srcdir/install/linux2
45 install -D -m755 blender $pkgdir/usr/share/$_svnmod/blender
46 install -D -m755 blenderplayer $pkgdir/usr/share/$_svnmod/blenderplayer
47 cp -r plugins $pkgdir/usr/share/$_svnmod/plugins
49 cd $srcdir/install/linux2/.blender
50 cp .Blanguages $pkgdir/usr/share/$_svnmod/Blanguages
51 cp .bfont.ttf $pkgdir/usr/share/$_svnmod/bfont.ttf
52 cp -r scripts $pkgdir/usr/share/$_svnmod/scripts
53 cp -r locale $pkgdir/usr/share/locale
55 cd $srcdir/install/linux2/icons
57 if [ $icondir != "scalable" ]; then
58 install -D -m644 $icondir/blender.png \
59 $pkgdir/usr/share/icons/hicolor/$icondir/apps/blender.png
61 install -D -m644 $icondir/blender.svg \
62 $pkgdir/usr/share/icons/hicolor/$icondir/apps/blender.svg
67 # vim: set ts=2 sw=2 sts=2 et ai: