summaryrefslogtreecommitdiff
path: root/libre/blender-libre/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-03-08 00:04:04 -0800
committerroot <root@rshg054.dnsready.net>2013-03-08 00:04:04 -0800
commit129db5c42a9c8f32d88c57ac3b81182acf844068 (patch)
treeaff83aea43093dddb25ddd1b52072b5ebd2723e3 /libre/blender-libre/PKGBUILD
parentd8d675cb1e75787b0db061756e4cbebe3c5a03fa (diff)
Fri Mar 8 00:04:03 PST 2013
Diffstat (limited to 'libre/blender-libre/PKGBUILD')
-rw-r--r--libre/blender-libre/PKGBUILD80
1 files changed, 34 insertions, 46 deletions
diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD
index 94e5b00cb..a721f66f9 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
+epoch=7
+pkgver=2.66a
+_pyver=3.3
pkgrel=2
-pkgaev=6
+pkgdesc="Fully integrated 3D graphics creation suite, without nonfree povray, cuda and redcode 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,29 @@ 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
+ ${_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 +73,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 +93,17 @@ 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}
+ # drop nonfree povray render support
+ rm -vrf $pkgdir/usr/share/${_pkgname%-$_pkgflag}/${pkgver::4}/scripts/addons/render_povray
}
+
+# vim:set ts=2 sw=2 et: