1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: XercesBlue (nullfied)
3 # Contributor: Mikael Eriksson (miffe)
4 # Contributor: mosra <mosra@centrum.cz>
5 # PKGBUILD stolen from blender-svn
6 pkgname=blender-freestyle-svn
9 pkgdesc="SVN version of Blender (branch with FreeStyle edge rendering)"
10 arch=('i686' 'x86_64')
11 url="http://blender.org/"
12 depends=('libpng' 'libgl' 'mesa' 'openexr' 'python' 'desktop-file-utils' 'libsamplerate'
13 'hicolor-icon-theme' 'ffmpeg' 'fftw' 'lcms' 'openal' 'freetype2' 'libxi')
14 makedepends=('subversion' 'cmake')
18 install=blender.install
19 source=(blender.desktop)
20 md5sums=('9acbd59bdf4cda404e1c59f343372fd9')
22 _svntrunk="https://svn.blender.org/svnroot/bf-blender/branches/soc-2008-mxcurioni/"
28 msg "Connecting to Blender SVN server......."
29 if [ -d $_svnmod/.svn ]; then
30 cd $_svnmod && svn up -r $pkgver
32 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
34 msg "SVN checkout done or server timeout"
36 msg "Starting make..."
40 [ -e "$srcdir"/$_svnmod-build ] || mkdir -p "$srcdir"/$_svnmod-build
41 cd "$srcdir"/$_svnmod-build
42 cmake -DCMAKE_INSTALL_PREFIX=/usr \
43 -DWITH_INSTALL_PORTABLE=OFF \
46 -DWITH_CODEC_FFMPEG=ON \
47 -DWITH_PYTHON_INSTALL=OFF \
48 -DPYTHON_VERSION=3.2mu \
52 # now compile some plugins
53 cp -rf "$srcdir"/$_svnmod/release/plugins/* \
54 "$srcdir"/$_svnmod/source/blender/blenpluginapi/
55 cd "$srcdir"/$_svnmod/source/blender/blenpluginapi
61 cd "$srcdir"/$_svnmod-build
62 make DESTDIR="$pkgdir" install
63 install -D -m644 "$srcdir"/blender.desktop \
64 "$pkgdir"/usr/share/applications/blender.desktop
67 install -d -m755 "$pkgdir"/usr/share/blender/`ls "$pkgdir"/usr/share/blender`/plugins/{sequence,texture}
68 cp "$srcdir"/$_svnmod/source/blender/blenpluginapi/sequence/*.so \
69 "$pkgdir"/usr/share/blender/*/plugins/sequence/
70 cp "$srcdir"/$_svnmod/source/blender/blenpluginapi/texture/*.so \
71 "$pkgdir"/usr/share/blender/*/plugins/texture/