From 6fa24b3322f6bd570f89b6ff4f10c582798f2224 Mon Sep 17 00:00:00 2001 From: Márcio Alexandre Silva Delgado Date: Fri, 19 Oct 2012 00:36:43 -0200 Subject: mix blender-libre packages --- libre/blender-libre/PKGBUILD | 56 ++++++++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 18 deletions(-) (limited to 'libre/blender-libre') diff --git a/libre/blender-libre/PKGBUILD b/libre/blender-libre/PKGBUILD index 1fc1a7f91..2800d9147 100755 --- a/libre/blender-libre/PKGBUILD +++ b/libre/blender-libre/PKGBUILD @@ -1,11 +1,24 @@ # $Id$ # Maintainer (Parabola): Márcio Silva -pkgname=blender-libre +spacenav=true +pkgbase=blender-libre +pkgflag=-libre +if [ $spacenav == true ]; then + pkgname=( + blender-spacenav-libre + ) + spndesc=' (with spacenav support)' +else + pkgname=( + blender-libre + ) + spndesc='' +fi +pkgdesc="A fully integrated 3D graphics creation suite, without nonfree cuda-toolkit and redcode image format support$spndesc" pkgver=2.64a pkgrel=2 pkgaev=5 -pkgdesc='A fully integrated 3D graphics creation suite, without nonfree cuda-toolkit and redcode image format support' arch=( i686 x86_64 @@ -14,9 +27,10 @@ arch=( license=( GPL ) -url=http://www.${pkgname%-libre}.org +url="http://www.${pkgbase%$pkgflag}.org" depends=( - # rbd tree # + # used by ldd software "glibc package software" + # dependencies tree of binaries software (root) # ffmpeg fftw freetype2 @@ -26,14 +40,14 @@ depends=( openal openimageio opencolorio - # bed # + # external softwares dependencies # opencollada - # ded # + # softwares dependencies for desktop files and mime types # desktop-file-utils hicolor-icon-theme shared-mime-info xdg-utils - # cbd tree # + # dependencies tree of binaries software (child) # #alsa-lib #boost-libs #bzip2 @@ -93,35 +107,41 @@ depends=( #v4l-utils #zlib ) +if [ $spacenav == true ]; then + depends+=( + # dependencies tree of binaries software (root) # + libspnav + ) +fi optdepends=( 'bullet: for Physics Simulation in BGE' ) makedepends=( - # rmd tree # + # make dependencies tree (root) # mesa boost cmake subversion ) -replaces=( - ${pkgname%-libre} +provides=( + ${pkgbase%$pkgflag}=$pkgaev:$pkgver ) conflicts=( - ${pkgname%-libre} + ${pkgbase%$pkgflag} ) -provides=( - ${pkgname%-libre}=$pkgaev:$pkgver +replaces=( + ${pkgbase%$pkgflag} ) -install=$pkgname.install +install=$pkgbase.install source=( - http://download.${pkgname%-libre}.org/source/${pkgname%-libre}-$pkgver.tar.gz + "http://download.${pkgbase%$pkgflag}.org/source/${pkgbase%$pkgflag}-$pkgver.tar.gz" ) sha512sums=( 77d171a36f1c87a82613ed7601df9cef444069a2a6600e05260607e9a2009c292068a2b4753f3cbd53d820cdc8d9ed88ddd1685f20647b943f75bfbeb905b9b5 ) build() { - cd "$srcdir/${pkgname%-libre}-$pkgver" + cd $srcdir/${pkgbase%$pkgflag}-$pkgver mkdir build cd build @@ -157,7 +177,7 @@ build() { } package() { - cd $srcdir/${pkgname%-libre}-$pkgver/build + cd $srcdir/${pkgbase%$pkgflag}-$pkgver/build make DESTDIR=$pkgdir install - python -m compileall $pkgdir/usr/share/blender + python -m compileall $pkgdir/usr/share/${pkgbase%$pkgflag} } -- cgit v1.2.3-54-g00ecf