summaryrefslogtreecommitdiff
path: root/pcr/yafaray/PKGBUILD
blob: 260d7ff0cd1e39a316935821016338ed4b249b89 (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
# Maintainer (AUR): AppleBloom <rat.o.drat@gmail.com>
# Contributor: Márcio Silva <coadde@hyperbola.info>

# parabola changes and rationale:
#  - removed "open source" term from pkgdesc
#  - adapted from yafaray-experimental on AUR
#  - renamed tarball to avoid collisions
#  - added missing depends: opencv boost

pkgname='yafaray'
pkgver='3.3.0'
pkgrel='1'
pkgdesc='A free montecarlo raytracing engine.'
arch=('i686' 'x86_64' 'armv7h')
url='http://yafaray.org/'
license=('LGPL2.1')
depends=('libxml2' 'libjpeg' 'libpng' 'libtiff' 'openexr' 'freetype2' 'zlib' 'opencv' 'boost')
makedepends=('cmake' 'swig' 'python')
optdepends=('python: Python bindings'
            'yafaray-blender-exporter: For rendering in Blender.')
source=("$pkgname-$pkgver.tar.gz::https://github.com/YafaRay/Core/archive/v$pkgver.tar.gz")
md5sums=('ef9b9de4f4aba8588ee00e294c32b0a6')

_srcdir="Core-$pkgver"

build() {
  cd "$_srcdir"

  [[ -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.5 ..
  make
}

package() {
  cd "$_srcdir/build"
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: