diff options
Diffstat (limited to 'pcr/yafaray')
-rw-r--r-- | pcr/yafaray/PKGBUILD | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/pcr/yafaray/PKGBUILD b/pcr/yafaray/PKGBUILD new file mode 100644 index 000000000..458181279 --- /dev/null +++ b/pcr/yafaray/PKGBUILD @@ -0,0 +1,112 @@ +# Maintainer: Márcio Silva <coadde@lavabit.com> + +_pkgname=yafaray +_pkgver=1.5 +_pkgrel=3 +_pkgdate=20130510 +_bldname=blender +_bldver=2.68 +_bldep=9 +_gitname=Core +_addname=${_bldname^}-Exporter +_addrel=1 +_adddate=20130623 +_pyver=3.3 + +# Fri May 10 00:57:12 2013 -0700 - Merge pull request #67 from DarkTide/master // Depth fix for hist on background +_srcver=44323def5b3866ff601fd401ef2160b80ced8141 +# Sun Jun 23 15:10:57 2013 +0200 - Refine AA changes for SPPM integrator +_addver=9bcb22e8b8bd9281999ad36c5b22604f671484bb + +pkgname=( + $_pkgname + $_bldname-addon-$_pkgname +) +pkgver=$_pkgver.$_pkgdate +pkgrel=$_pkgrel +pkgdesc='A free software raytracing engine' +arch=( + mips64el + x86_64 + i686 +) +url=http://www.$_pkgname.org +license=LGPL2.1 +depends=( + freetype2 + libjpeg + libxml2 + openexr-libre +) +optdepends=( + 'python: Python bindings' + 'qt4: QT GUI' + "${pkgname[1]}: ${_bldname^} addon renderer" +) +makedepends=( + cmake + git + python + qt4 + swig +) +source=( + $_gitname-$_srcver.tar.gz::https://github.com/YafaRay/$_gitname/archive/$_srcver.tar.gz + $_addname-$_addver.tar.gz::https://github.com/YafaRay/$_addname/archive/$_addver.tar.gz +) +sha512sums=( + 5045a3de89e0a2d029e8b6ce962eeadeb5587369217d11d42ca79706a65e6ac7b07584f68307f76c90dbaf190af9626e3351e391107a4e763fc9e41d48cfd7a6 + 59322686d0623481b38c531e2a8350cafcf8942eb08df2dfcc8f59657715aa716ca34d473f862291e8a375fccdf717d93898caa3e344cfa1a3e5e760c903d32c +) + +prepare() { + cd $srcdir/$_gitname-$_srcver + + msg 'Renaming addon dir' + mv -v $srcdir/$_addname-$_addver $srcdir/$_pkgname + + msg 'renaming wrong OS name' + sed -i 's|Linux|GNU/Linux| + ' $srcdir/$_pkgname/prop/yaf_scene.py + + [[ -d build ]] && rm -vr build + mkdir -v build +} + +build() { + cd $srcdir/$_gitname-$_srcver/build + cmake .. -DCMAKE_INSTALL_PREFIX=/usr\ + -DYAF_PY_VERSION=$_pyver\ + -DYAF_BINDINGS_PY_DIR=/usr/lib/python$_pyver + make +} + +package_yafaray() { + cd $srcdir/$_gitname-$_srcver/build + make DESTDIR=$pkgdir install +} + +package_blender-addon-yafaray() { + pkgdesc="A addon for the ${_bldname^} which allows render with YafaRay (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))" + ) + pkgver=$_pkgver.$_adddate.v$_bldver + pkgrel=$_addrel + optdepends= + + cd $srcdir + + a=/usr/lib + b=$pkgdir/usr/share/$_bldname/$_bldver/scripts/addons/$_pkgname/bin + + install -vd $b && cp -a $_pkgname ${b%$_pkgname/bin} + ln -vsf $a/lib${_pkgname}core.so $b/lib${_pkgname}core.so + ln -vsf $a/lib${_pkgname}plugin.so $b/lib${_pkgname}plugin.so + ln -vsf $a/$_pkgname $b/plugins +} + +# vim:set ts=2 sw=2 et: |