updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / blender-beta / PKGBUILD
blob2f27c7d40cfd0269dd4b5c37bc8cf45fa19ce959
1 # Maintainer: Rene Peinthor <peinthor@gmail.com>
2 pkgname=blender-beta
3 pkgver=2.57
4 pkgrel=2
5 pkgdesc="Blender beta version build from source"
6 arch=('i686' 'x86_64')
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')
11 conflicts=('blender')
12 license=('GPL')
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"
21 build() {
22   cd "$srcdir"/$extractedSrcDir
24   msg "Starting make..."
25   ##########
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 \
30                 -DWITH_LCMS=ON \
31                 -DWITH_FFTW3=ON \
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
36   make
37   ##########
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
42   chmod 755 bmake
43   make
46 package() {
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
52   # install plugins
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/