summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/blender-libre/PKGBUILD40
1 files changed, 17 insertions, 23 deletions
diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD
index b39705eed..c55d9a385 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
+epoch=10
+_pkgver=2.68a
pkgrel=1
_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
@@ -60,22 +51,24 @@ makedepends=(
boost
cmake
mesa
- subversion
)
-provides=($_pkgname=$epoch:$_pkgver)
-conflicts=$_pkgname
+provides=($_pkgname)
+[[ $_spn == true ]] && provides+=($_pkgname-libre)
+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 'rename 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
+
mkdir -v build
msg 'Remove nonfree povray render support'
@@ -85,7 +78,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 +89,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 +117,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: