summaryrefslogtreecommitdiff
path: root/libre/blender-libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre/blender-libre')
-rw-r--r--libre/blender-libre/PKGBUILD82
1 files changed, 33 insertions, 49 deletions
diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD
index 94e5b00cb..8baed7927 100644
--- a/libre/blender-libre/PKGBUILD
+++ b/libre/blender-libre/PKGBUILD
@@ -1,33 +1,28 @@
# $Id$
-# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+# Maintainer: Márcio Silva <coadde@lavabit.com>
-spacenav=false
-pkgbase=blender-libre
-pkgflag=-libre
-if [ $spacenav == true ]; then
- pkgname=(
- blender-spacenav-libre
- )
- spndesc=' (with spacenav support)'
+_spacenav=false
+_pkgname=blender-libre
+_pkgflag=libre
+if [ $_spacenav == true ]; then
+ pkgname=blender-spacenav-libre
+ _spndesc=' (with spacenav support)'
else
- pkgname=(
- blender-libre
- )
- spndesc=''
+ pkgname=blender-libre
+ _spndesc=''
fi
-pkgdesc="Fully integrated 3D graphics creation suite, without nonfree cuda-toolkit and redcode image format support$spndesc"
-pkgver=2.66
-pkgrel=2
-pkgaev=6
+epoch=7
+pkgver=2.66a
+_pyver=3.3
+pkgrel=1
+pkgdesc="Fully integrated 3D graphics creation suite, without nonfree cuda-toolkit and redcode image format support$_spndesc"
arch=(
i686
x86_64
mips64el
)
-license=(
- GPL
-)
-url="http://www.${pkgbase%$pkgflag}.org"
+license=GPL
+url="http://www.${_pkgname%-$_pkgflag}.org"
depends=(
desktop-file-utils
ffmpeg
@@ -45,41 +40,27 @@ depends=(
shared-mime-info
xdg-utils
)
-if [ $spacenav == true ]; then
+if [ $_spacenav == true ]; then
depends+=(
- # dependencies tree of binaries software (root) #
libspnav
)
fi
-optdepends=(
- 'bullet: for Physics Simulation in BGE'
-)
+optdepends='bullet: for Rigid Bodies and Physics Simulation'
makedepends=(
- # make dependencies tree (root) #
boost
cmake
mesa
subversion
)
-provides=(
- ${pkgbase%$pkgflag}=$pkgaev:$pkgver
-)
-conflicts=(
- ${pkgbase%$pkgflag}
-)
-replaces=(
- ${pkgbase%$pkgflag}
-)
-install=$pkgbase.install
-source=(
- "http://download.${pkgbase%$pkgflag}.org/source/${pkgbase%$pkgflag}-$pkgver.tar.gz"
-)
-sha512sums=(
- f76499edc5f8179a42ec6d6334c6fa03f830570d054061ae40c2e8e1ec0a0090efcbb642f4f7f3b99d3941d4c4b791a0e357a275acf1b3ac251d58906f23b2b4
-)
+provides=${_pkgname%-$_pkgflag}=$epoch:$pkgver
+conflicts=${_pkgname%-$_pkgflag}
+replaces=${_pkgname%-$_pkgflag}
+install=$_pkgname.install
+source="http://download.${_pkgname%-$_pkgflag}.org/source/${_pkgname%-$_pkgflag}-$pkgver.tar.gz"
+sha512sums=ea5def031daa220991f6165950234b311e8ae3baa6785d6226efefa90b64e1b83e8635f71f9a7fc7ae23923ce313d5ae48ffa0c54cf7ff794a4fb2dacbe8714f
build() {
- cd $srcdir/${pkgbase%$pkgflag}-$pkgver
+ cd $srcdir/${_pkgname%-$_pkgflag}-$pkgver
mkdir build
cd build
@@ -90,10 +71,10 @@ build() {
-DCMAKE_BUILD_TYPE=Release\
-DCMAKE_INSTALL_PREFIX=/usr\
-DOPENIMAGEIO_ROOT_DIR=/usr\
- -DPYTHON_INCLUDE_DIRS=/usr/include/python3.3m\
+ -DPYTHON_INCLUDE_DIRS=/usr/include/python${_pyver}m\
-DPYTHON_LIBPATH=/usr/lib\
- -DPYTHON_LIBRARY=python3.3m\
- -DPYTHON_VERSION=3.3\
+ -DPYTHON_LIBRARY=python${_pyver}m\
+ -DPYTHON_VERSION=${_pyver}\
$DSUPPORT_SSE2_BUILD\
-DWITH_CODEC_FFMPEG=ON\
-DWITH_CODEC_SNDFILE=ON\
@@ -110,12 +91,15 @@ build() {
-DWITH_PLAYER=ON\
-DWITH_PYTHON_INSTALL=OFF\
-DWITH_SYSTEM_GLEW=ON
+
setarch $CARCH make $MAKEFLAGS
setarch $CARCH make
}
package() {
- cd $srcdir/${pkgbase%$pkgflag}-$pkgver/build
+ cd $srcdir/${_pkgname%-$_pkgflag}-$pkgver/build
setarch $CARCH make DESTDIR=$pkgdir install
- setarch $CARCH python -m compileall $pkgdir/usr/share/${pkgbase%$pkgflag}
+ setarch $CARCH python -m compileall $pkgdir/usr/share/${_pkgname%-$_pkgflag}
}
+
+# vim:set ts=2 sw=2 et: