desktop/blender/PKGBUILD

63 lines
2.1 KiB
Bash
Raw Normal View History

2010-07-05 08:03:22 +08:00
#
# 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
2011-04-29 09:20:25 +08:00
pkgver=2.57b
2011-04-15 23:43:57 +08:00
pkgrel=1
2011-04-29 09:20:25 +08:00
pkgdesc="A fully integrated 3D graphics creation suite"
2010-07-05 08:03:22 +08:00
arch=('i686' 'x86_64')
license=('GPL')
2011-04-29 09:20:25 +08:00
url="http://www.blender.org"
depends=('libjpeg' 'libpng' 'openjpeg' 'libtiff' 'openexr' 'sdl' 'python3' 'desktop-file-utils' 'shared-mime-info' 'hicolor-icon-theme' 'xdg-utils' 'gettext' 'libxi' 'libxmu' 'mesa' 'freetype2' 'openal' 'libsndfile' 'libsamplerate' 'ffmpeg')
makedepends=('cmake')
2010-07-05 08:03:22 +08:00
install=blender.install
2011-04-29 09:20:25 +08:00
makedepends=('cmake')
source=(http://download.blender.org/source/$pkgname-$pkgver.tar.gz)
md5sums=('d5f1083d39545686fe8ec8480546ec3f')
2010-07-05 08:03:22 +08:00
build() {
2011-04-29 09:20:25 +08:00
cd "$srcdir/$pkgname-$pkgver"
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DWITH_INSTALL_PORTABLE:BOOL=OFF \
-DWITH_PYTHON_INSTALL:BOOL=OFF \
-DWITH_OPENCOLLADA:BOOL=OFF \
-DWITH_GAMEENGINE:BOOL=ON \
-DWITH_PLAYER:BOOL=ON \
-DPYTHON_VERSION:STRING=3.2 \
-DPYTHON_LIBPATH:STRING=/usr/lib \
-DPYTHON_LIBRARY:STRING=python3.2mu \
-DPYTHON_INCLUDE_DIRS:STRING=/usr/include/python3.2mu
make $MAKEFLAGS
cp -rf "$srcdir"/${pkgname}-$pkgver/release/plugins/* \
"$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi/
cd "$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi
chmod 755 bmake
make
2010-07-05 08:03:22 +08:00
}
2011-04-29 09:20:25 +08:00
package() {
cd "$srcdir/$pkgname-$pkgver/build"
make DESTDIR="${pkgdir}" install
2011-04-30 06:26:06 +08:00
python3 -m compileall "${pkgdir}/usr/share/blender"
2011-04-29 09:20:25 +08:00
# install plugins
install -d -m755 "$pkgdir"/usr/share/blender/${pkgver%[a-z]}/plugins/{sequence,texture}
cp "$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi/sequence/*.so \
"$pkgdir"/usr/share/blender/${pkgver%[a-z]}/plugins/sequence/
cp "$srcdir"/${pkgname}-$pkgver/source/blender/blenpluginapi/texture/*.so \
"$pkgdir"/usr/share/blender/${pkgver%[a-z]}/plugins/texture/
}