# Maintainer (AUR): Jakob Gahde # Contributor (AUR): Thomas Ascher # Contributor: Márcio Silva # parabola changes and rationale: # - removed "open source" term from pkgdesc pkgname=yafaray pkgver=0.1.5 pkgrel=2 pkgdesc="A free montecarlo raytracing engine" arch=('i686' 'x86_64') url="http://yafaray.org/" license=('LGPL2.1') depends=('openexr' 'qt4') optdepends=('python: Python bindings') makedepends=('cmake' 'swig' 'python') source=("https://github.com/YafaRay/Core/archive/${pkgver}.tar.gz" "std_namespace_usage.patch") md5sums=('31202a7bee930b2698c665ef6513bd7b' 'a98b23496e975bf91f9d97092d794d0c') prepare() { cd "${srcdir}/Core-${pkgver}" patch -Np1 < "${srcdir}/std_namespace_usage.patch" } build() { cd "${srcdir}/Core-${pkgver}" # Delete the build directory if it exists to avoid confusion caused by CMake's caches test -d build && rm -rf build mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DYAF_PY_VERSION=3.5 \ -DYAF_BINDINGS_PY_DIR=/usr/lib/python3.4 .. make } package() { cd "${srcdir}/Core-${pkgver}/build" make DESTDIR="${pkgdir}" install }