Commit cddb1860 authored by Anke's avatar Anke

Adding blender-beta, stable blender not compatible with python 2.7

parent d060a4a2
#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=blender-beta
pkgver=2.56a
pkgrel=1
pkgdesc="Blender beta version build from source"
arch=('i686' 'x86_64')
url="http://blender.org/"
depends=('libpng' 'libgl' 'mesa' 'openexr' 'gettext' 'python3' 'desktop-file-utils' 'libsamplerate'
'hicolor-icon-theme' 'ffmpeg' 'fftw' 'lcms' 'lame' 'openal' 'libsndfile' 'jack')
makedepends=('python3' 'yasm' 'cmake')
provides=('blender')
conflicts=('blender')
license=('GPL')
install=blender.install
#source=(http://download.blender.org/source/blender-$pkgver-beta.tar.gz blender.desktop)
source=(http://rp.oldsch00l.com/tmp/source/blender-$pkgver-beta-source.tar.bz2 blender.desktop)
md5sums=('55624e1a5ebbb2b2ef919f6f09b3d862'
'634b532b58d5ef51bcbb7859b318e81d')
extractedSrcDir="blender-$pkgver-beta-source"
build() {
msg "Starting make..."
cd "$srcdir"/$extractedSrcDir
##########
[ -e "$srcdir"/blender-$pkgver-beta-build ] || mkdir -p "$srcdir"/blender-$pkgver-beta-build
cd "$srcdir"/blender-$pkgver-beta-build
cmake -DWITH_CODEC_SNDFILE:BOOL=ON -DWITH_CODEC_FFMPEG:BOOL=ON -DCMAKE_INSTALL_PREFIX=/usr "$srcdir"/$extractedSrcDir
make
##########
# now compile some plugins
cp -rf "$srcdir"/$extractedSrcDir/release/plugins/* \
"$srcdir"/$extractedSrcDir/source/blender/blenpluginapi/
cd "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi
chmod 755 bmake
sed -i 's/\r$//' bmake
make
}
package() {
cd "$srcdir"/blender-$pkgver-beta-build
make DESTDIR="$pkgdir" install
install -D -m644 "$srcdir"/blender.desktop \
"$pkgdir"/usr/share/applications/blender.desktop
# install plugins
install -d -m755 "$pkgdir"/usr/share/blender/*/plugins/{sequence,texture}
cp "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi/sequence/*.so \
"$pkgdir"/usr/share/blender/*/plugins/sequence/
cp "$srcdir"/$extractedSrcDir/source/blender/blenpluginapi/texture/*.so \
"$pkgdir"/usr/share/blender/*/plugins/texture/
}
[Desktop Entry]
Name=Blender-beta
Comment=A 3D program
Comment[cs]=Program pro 3D modeling a animaci
Comment[es]=Un programa de 3D
Comment[no]=Et 3d-program
Comment[de]=Ein 3D modelierungs Program
Comment[da]=Et program til 3d-modelering
Exec=blender
Icon=blender
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Graphics;3DGraphics;
MimeType=application/blender;application/x-blender;
post_install() {
cat << EOF
NOTE
----
This package brings Blender compiled with cmake.
Features includes:
- ffmpeg support
- gameengine
- verse support
- some aditional sequence and texture plugins
are accesible from /usr/share/blender/plugins
EOF
echo "update desktop mime database..."
update-desktop-database
gtk-update-icon-cache -f /usr/share/icons/hicolor/
}
post_upgrade() {
gtk-update-icon-cache -f /usr/share/icons/hicolor/
}
post_remove() {
echo "update desktop mime database..."
update-desktop-database
gtk-update-icon-cache -f /usr/share/icons/hicolor/
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment