summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-21 03:58:01 -0300
committerMárcio Alexandre Silva Delgado <coadde@lavabit.com>2013-06-21 03:58:01 -0300
commit843405af1ec6661daf8eb6084e4e804d4daad98d (patch)
tree396d148d7b7dd7fefba06bf870f752e6fb10ab47
parent2ea4fee3286319c7f08c4ef0862be2e156f2a860 (diff)
yafaray: add pkg to pcr repo
-rw-r--r--pcr/yafaray/PKGBUILD99
1 files changed, 99 insertions, 0 deletions
diff --git a/pcr/yafaray/PKGBUILD b/pcr/yafaray/PKGBUILD
new file mode 100644
index 000000000..e3c0381d8
--- /dev/null
+++ b/pcr/yafaray/PKGBUILD
@@ -0,0 +1,99 @@
+# Maintainer: Márcio Silva <coadde@lavabit.com>
+
+pkgname=(
+ yafaray
+ blender-addon-yafaray
+)
+_pkgname=${pkgname[0]}
+_bldname=${pkgname[1]::7}
+_gitname=Core
+_addname=${_bldname^}-Exporter
+_pkgdate=20130510
+pkgver=1.5.$_pkgdate
+_srcver=44323def5b3866ff601fd401ef2160b80ced8141 # Fri May 10 00:57:12 2013 -0700 - Merge pull request #67 from DarkTide/master // Depth fix for hist on background
+_bldver=2.67
+_bldep=8
+_pyver=3.3
+pkgrel=1
+pkgdesc='A libre software raytracing engine'
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+url="http://www.$_pkgname.org"
+license=LGPL2.1
+depends=(
+ freetype2
+ libjpeg
+ libxml2
+ openexr
+)
+optdepends=(
+ 'python: Python bindings'
+ 'qt4: QT GUI'
+ "${pkgname[1]}: ${_bldname^} addon renderer"
+)
+makedepends=(
+ cmake
+ git
+ python
+ qt4
+ swig
+)
+source=(
+ git://github.com/YafaRay/$_gitname.git
+ git://github.com/YafaRay/$_addname.git
+)
+sha512sums=(SKIP SKIP)
+
+prepare() {
+ cd $srcdir/$_gitname
+
+ git checkout $_srcver
+
+ [[ -d build ]] && rm -r build
+ mkdir build
+}
+
+build() {
+ cd $srcdir/$_gitname/build
+
+ setarch $CARCH cmake .. -DCMAKE_INSTALL_PREFIX=/usr\
+ -DYAF_PY_VERSION=$_pyver\
+ -DYAF_BINDINGS_PY_DIR=/usr/lib/python$_pyver
+ setarch $CARCH make
+}
+
+package_yafaray() {
+ cd $srcdir/$_gitname/build
+ setarch $CARCH make DESTDIR=$pkgdir install
+}
+
+package_blender-addon-yafaray() {
+ pkgver=$pkgver.v$_bldver
+ _srcver=e6688fc4f480bcb1ae7d0a6dbe65563b3d070169 # Fri May 10 00:24:58 2013 -0700 - Merge pull request #14 from DarkTide/master // Version bump, and some other fixes
+ pkgdesc="A addon for the ${_bldname^} which allows render with YafaRay (built for the $_bldname-libre package)"
+ arch=any
+ depends=(
+ ${pkgname:14}=${pkgver%.v$_bldver}
+ "$_bldname>=$(($_bldep-1)):$_bldver"
+ "$_bldname<$_bldep:${_bldver::2}$((${_bldver:2:4}+1))"
+ )
+ optdepends=
+
+ cd $srcdir/$_addname
+
+ a=/usr/lib
+ b=$pkgdir/usr/share/$_bldname/$_bldver/scripts/addons/$_pkgname/bin
+
+ git checkout $_srcver
+ git checkout-index -a -f --prefix=${b%bin}
+
+ install -d $b
+ ln -sf $a/lib${_pkgname}core.so $b/lib${_pkgname}core.so
+ ln -sf $a/lib${_pkgname}plugin.so $b/lib${_pkgname}plugin.so
+ ln -sf $a/$_pkgname $b/plugins
+}
+
+# vim:set ts=2 sw=2 et: