updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / blender2.4-svn / PKGBUILD
blob796665e66769c938bf6acaa5fb4edaa6900e3f2c
1 # Contributor: Jeroen Volman <jeroenvolman@gmail.com>
2 pkgname=blender2.4-svn
3 pkgver=24534
4 pkgrel=1
5 pkgdesc="Subversion version of Blender 2.49 optimized for current system"
6 arch=('i686' 'x86_64')
7 url="http://blender.org/"
8 depends=('libgl' 'mesa' 'libjpeg' 'libpng' 'openexr' 'gettext' 'python' 'sdl' 'ffmpeg' 'openal')
9 makedepends=('subversion' 'yasm')
10 provides=('blender')
11 conflicts=('blender')
12 license=('GPL')
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"
21 _svnmod="blender"
23 build() {
24   # download source
25   cd $srcdir
26   msg "Checking out Blender source from $_svntrunk..."
27   svn co $_svntrunk -r $pkgver $_svnmod
28   msg "Checkout complete or server timeout..."
30   # copy configuration
31   cp $srcdir/user-config.py $srcdir/$_svnmod
32   cd $srcdir/$_svnmod
34   # compile blender
35   msg "Compiling Blender..."
36   python scons/scons.py || return 1
38   # install blender
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
48   
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
56   for icondir in *; do
57     if [ $icondir != "scalable" ]; then
58       install -D -m644 $icondir/blender.png \
59         $pkgdir/usr/share/icons/hicolor/$icondir/apps/blender.png
60     else
61       install -D -m644 $icondir/blender.svg \
62         $pkgdir/usr/share/icons/hicolor/$icondir/apps/blender.svg
63     fi
64   done
67 # vim: set ts=2 sw=2 sts=2 et ai: