1 # Maintainer: Rene Peinthor <peinthor@gmail.com>
5 pkgdesc="Blender beta version build from source"
7 url="http://blender.org/"
8 depends=('libpng' 'mesa' 'openexr' 'python=3.2' 'libsamplerate' 'ffmpeg' 'fftw' 'lcms' 'openal')
9 makedepends=('python' 'cmake')
10 provides=('blender=$pkgver')
13 install=blender.install
14 #source=(http://download.blender.org/source/blender-$pkgver-beta.tar.gz blender.desktop)
15 source=(http://rp.oldsch00l.com/tmp/source/blender-$pkgver-beta-source.tar.bz2 blender.desktop)
16 md5sums=('6f661cf2b2173fb5c8450ad04e218c70'
17 '634b532b58d5ef51bcbb7859b318e81d')
19 extractedSrcDir="blender-$pkgver-beta-source"
22 cd "$srcdir"/$extractedSrcDir
24 msg "Starting make..."
26 [ -e "$srcdir"/blender-$pkgver-beta-build ] || mkdir -p "$srcdir"/blender-$pkgver-beta-build
27 cd "$srcdir"/blender-$pkgver-beta-build
28 cmake -DPYTHON_VERSION=3.2mu \
29 -DWITH_INSTALL_PORTABLE=OFF \
32 -DWITH_CODEC_SNDFILE:BOOL=ON \
33 -DWITH_CODEC_FFMPEG:BOOL=ON \
34 -DWITH_PYTHON_INSTALL:BOOL=OFF \
35 -DCMAKE_INSTALL_PREFIX=/usr "$srcdir"/$extractedSrcDir
38 # now compile some plugins
39 cp -rf "$srcdir"/$extractedSrcDir/release/plugins/* \
40 "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi/
41 cd "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi
47 cd "$srcdir"/blender-$pkgver-beta-build
48 make DESTDIR="$pkgdir" install
49 install -D -m644 "$srcdir"/blender.desktop \
50 "$pkgdir"/usr/share/applications/blender.desktop
53 install -d -m755 "$pkgdir"/usr/share/blender/`ls "$pkgdir"/usr/share/blender`/plugins/{sequence,texture}
54 cp "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi/sequence/*.so \
55 "$pkgdir"/usr/share/blender/*/plugins/sequence/
56 cp "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi/texture/*.so \
57 "$pkgdir"/usr/share/blender/*/plugins/texture/