diff options
Diffstat (limited to 'pcr/mitsuba')
-rw-r--r-- | pcr/mitsuba/PKGBUILD | 79 |
1 files changed, 27 insertions, 52 deletions
diff --git a/pcr/mitsuba/PKGBUILD b/pcr/mitsuba/PKGBUILD index 1bae709d8..210c6dfc6 100644 --- a/pcr/mitsuba/PKGBUILD +++ b/pcr/mitsuba/PKGBUILD @@ -1,62 +1,37 @@ # Maintainer: Márcio Silva <coadde@parabola.nu> +_build_pkg=no +_build_add=yes + _pkgname=mitsuba _pkgver=0.5.0 _pkgrel=3 _bldname=blender _bldver=2.71 -_bldep=12 +_bldep=14 _addname=$_pkgname-$_bldname -_adddat=20140325 -_addrev=57 +_adddat=20140722 +_addrev=61 _addrel=1 _pyver=3.4 -# Tue Mar 25 02:35:10 2014 +0100 - rev:55:2e925643723b ($srcdir/$_addname/mtsblend/__init__.py:bl_info>version) +# rev:55 addon ($srcdir/$_addname/mtsblend/__init__.py:bl_info>version) _addver=0.3.0 -pkgname=( - $_pkgname - $_bldname-addon-$_pkgname -) +[[ $_build_pkg == yes ]] && pkgname+=("$_pkgname") +[[ $_build_add == yes ]] && pkgname+=("$_bldname-addon-$_pkgname") pkgver=$_pkgver pkgrel=$_pkgrel pkgdesc='A physically based renderer' -arch=( - mips64el - x86_64 - i686 -) -url=https://www.$_pkgname-renderer.org/ -license=GPL3 -depends=( - boost-libs - collada-dom - glew - libxxf86vm - openexr - qt4 - xerces-c -) -optdepends=( - 'python: Python bindings' - "${pkgname[1]}: ${_bldname^} addon exporter and renderer" -) -makedepends=( - boost - cmake - eigen3 - mercurial - python -) -source=( - $_pkgname-$pkgver.tar.bz2::${url}repos/$_pkgname/archive/v$pkgver.tar.bz2 - $_addname-$_addver-$_addrev.tar.bz2::${url}repos/exporters/$_addname/archive/$_addrev.tar.bz2 -) -sha512sums=( - cb30ca95ada36bec56aca3af55af19511ae64f05631d3e221308dee6fe04a1de08daab6e89c9025c8f6492731ed586d40d92f2168c5d49a060f31cd0afc7d0a7 - 1eacba1c290f288b8d59000097912be54e79f8c49ef8e3cb094b50d8548dc615db13ff8f2481860235a02b49ab58b6bdb0a9dfd95acec66727a454affa49abdd -) +arch=('i686' 'x86_64' 'mips64el') +url="https://www.$_pkgname-renderer.org/" +license=('GPL3') +depends=('boost-libs' 'collada-dom' 'glew' 'libxxf86vm' 'openexr' 'qt4' 'xerces-c') +makedepends=('boost' 'cmake' 'eigen3' 'mercurial' 'python') +source=("$_pkgname-$pkgver.tar.bz2::${url}repos/$_pkgname/archive/v$pkgver.tar.bz2" + "$_addname-$_addver-$_addrev.tar.bz2::${url}repos/exporters/$_addname/archive/$_addrev.tar.bz2") +sha512sums=('cb30ca95ada36bec56aca3af55af19511ae64f05631d3e221308dee6fe04a1de08daab6e89c9025c8f6492731ed586d40d92f2168c5d49a060f31cd0afc7d0a7' + '1eacba1c290f288b8d59000097912be54e79f8c49ef8e3cb094b50d8548dc615db13ff8f2481860235a02b49ab58b6bdb0a9dfd95acec66727a454affa49abdd') prepare() { mv -v $srcdir/$_pkgname-???????????? $srcdir/$_pkgname-v$pkgver @@ -96,9 +71,12 @@ build() { } package_mitsuba() { + install="$_pkgname.install" + optdepends=('python: Python bindings' + "${pkgname[1]}: ${_bldname^} addon exporter and renderer") + cd $srcdir/$_pkgname-v$pkgver/build make DESTDIR=$pkgdir install - install=$_pkgname.install msg 'fixing files and folders location' a=$pkgdir/usr @@ -117,17 +95,14 @@ package_mitsuba() { } package_blender-addon-mitsuba() { - pkgdesc="A addon for the ${_bldname^} which allows render and export with Mitsuba (built for the $_bldname-libre package)" - arch=any - depends=( - $_pkgname=$pkgver - "$_bldname-libre>=$_bldep:$_bldver" - "$_bldname-libre<$(($_bldep+1)):${_bldver::2}$((${_bldver:2:4}+1))" - ) + pkgdesc="A addon for the ${_bldname^} which allows render and export with Mitsuba (built for the $_bldname package)" + arch=('any') + depends=("$_pkgname=$pkgver" + "$_bldname-libre>=$_bldep:$_bldver" + "$_bldname-libre<$(($_bldep+1)):${_bldver::2}$((${_bldver:2:4}+1))") _pkgver=$pkgver pkgver=$_addver.r$_addrev.v$_bldver pkgrel=$_addrel - optdepends= cd $srcdir/$_addname-$_addrev |