summaryrefslogtreecommitdiff
path: root/libre/blender-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/blender-libre/PKGBUILD')
-rw-r--r--libre/blender-libre/PKGBUILD60
1 files changed, 35 insertions, 25 deletions
diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD
index b39705eed..90df03528 100644
--- a/libre/blender-libre/PKGBUILD
+++ b/libre/blender-libre/PKGBUILD
@@ -1,21 +1,12 @@
# Maintainer: Márcio Silva <coadde@lavabit.com>
_pkgname=blender
-epoch=9
-_pkgver=2.68
-pkgrel=1
+epoch=10
+_pkgver=2.68a
+pkgrel=3
_jpgver=1.5
_pyver=3.3
-# Only used if package is unstable.
-_svn=false
-[[ $_svn == true ]] && {
- pkgrel=1
- _svnrev=58224
- _svnver=.r$_svnrev
- _svndesc=', svn version'
-}
-
_spn=false
[[ $_spn == true ]] && {
_spnname=-spacenav
@@ -23,8 +14,8 @@ _spn=false
}
pkgname=$_pkgname$_spnname-libre
-pkgver=$_pkgver$_svnver
-pkgdesc='Fully integrated 3D graphics creation suite, without nonfree povray and cuda support'$_svndesc$_spndesc
+pkgver=$_pkgver
+pkgdesc='Fully integrated 3D graphics creation suite, without nonfree povray and cuda support'$_spndesc
arch=(
mips64el
x86_64
@@ -43,7 +34,7 @@ depends=(
libpng
libtiff
openal
- openexr
+ openexr-libre
openimageio
'opencollada=20130413'
opencolorio
@@ -60,22 +51,40 @@ makedepends=(
boost
cmake
mesa
- subversion
)
-provides=($_pkgname=$epoch:$_pkgver)
-conflicts=$_pkgname
+provides=($_pkgname)
+[[ $_spn == true ]] && provides+=("$_pkgname-libre=$epoch:$pkgver")
+conflicts=($_pkgname)
+[[ $_spn == true ]] && conflicts+=($_pkgname-libre)
replaces=$_pkgname
install=$_pkgname.install
source=http://download.$_pkgname.org/source/$_pkgname-$pkgver.tar.gz
-sha512sums=b7a8ce36714881d8dd809c3597695945cceddfc65ab2d20597a7d9c6327805d86edc4131cdc543d9267e120833781764a8a43a2dba06866fc4e62761f7c93ebf
-[[ $_svn == true ]] && {
- source=$_pkgname-$pkgver::svn+https://svn.$_pkgname.org/svnroot/bf-$_pkgname/trunk/$_pkgname#revision=$_svnrev
- sha512sums=SKIP
-}
+sha512sums=ce93779c5cbadf361f08ad0f9d5370d52878f94edc0b113d73711b842169d0e000e1500ece8e534439d94c5983e6ff3f15ca4ccd74db5f21447274c475090019
prepare() {
cd $srcdir/$_pkgname-$pkgver
+ msg 'renaming wrong OS name'
+ _OS=$(uname -o)
+ [[ $_OS == GNU ]] && sed -i 's|BUILD_PLATFORM;|"GNU";|' source/creator/buildinfo.c
+ [[ $_OS == GNU/Linux ]] && sed -i 's|BUILD_PLATFORM;|"GNU/Linux-libre";|' source/creator/buildinfo.c
+ sed -i 's|Linux, Mac OS X, Windows and FreeBSD|GNU and GNU/Linux-libre|
+ s|Linux, FreeBSD|GNU, GNU/Linux-libre|
+ s|Unpack the archive, Then run the Blender executable.|Intall from Parabola repo (pacman -S '"$pkgname"'), Then run blender.|
+ \|Windows|d;\|Mac OS X|d
+ s|The downloaded Blender package includes|The '"${pkgname^}"' package includes|
+ ' release/text/readme.html
+ sed -i 's|Linux|GNU/Linux-libre|
+ ' release/scripts/{addons/game_engine_save_as_runtime,modules/bl_i18n_utils/utils_rtl}.py
+ sed -i 's| (.so under Linux, .dll under windows...)||
+ ' release/scripts/{addons/ui_translate,modules/bl_i18n_utils}/settings.py
+
+ msg 'removing Open Source term'
+ sed -i 's|free, open source|free|
+ s|free and open-source|free|
+ s|open-source and free|free|
+ ' release/text/readme.html
+
mkdir -v build
msg 'Remove nonfree povray render support'
@@ -85,7 +94,7 @@ prepare() {
build() {
cd $srcdir/$_pkgname-$pkgver/build
- [[ $CARCH == x86_64 ]] && _SSE2=ON || _SSE2=OFF
+ [[ $CARCH == x86_64 || $CARCH == i686 ]] && _SSE=ON _SSE2=ON || _SSE=OFF _SSE2=OFF
[[ $_spn == true ]] && _NDOF=ON || _NDOF=OFF
cmake ..\
-DCMAKE_BUILD_TYPE=Release\
@@ -96,6 +105,7 @@ build() {
-DPYTHON_LIBPATH=/usr/lib\
-DPYTHON_LIBRARY=python${_pyver}m\
-DPYTHON_VERSION=$_pyver\
+ -DSUPPORT_SSE_BUILD=$_SSE\
-DSUPPORT_SSE2_BUILD=$_SSE2\
-DWITH_BULLET=ON\
-DWITH_CODEC_FFMPEG=ON\
@@ -123,7 +133,7 @@ build() {
package() {
cd $srcdir/$_pkgname-$pkgver/build
make DESTDIR=$pkgdir install
- python -m compileall $pkgdir/usr/share/$_pkgname || return 0
+ python -m compileall $pkgdir/usr/share/$_pkgname
}
# vim:set ts=2 sw=2 et: