summaryrefslogtreecommitdiff
path: root/pcr/yafaray/PKGBUILD
blob: fe09f7343562da0421d0eeda9056760d1de99206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer (AUR): Jakob Gahde <j5lx@fmail.co.uk>
# Contributor (AUR): Thomas Ascher <thomas.ascher@gmx.at>
# Contributor: Márcio Silva <coadde@hyperbola.info>

# 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
}