blob: 63b78f3708ba745b144b08a8f3a956c8cf9a3849 (
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
47
48
|
# Maintainer: bartus <aur@bartus.33mail.com>
pkgname=luxcorerender
pkgver=2.0
pkgrel=1
pkgdesc="LuxCoreRender is a physically correct, unbiased rendering engine."
arch=('x86_64')
url="https://www.luxcorerender.org/"
license=('Apache')
depends=(openimageio boost blosc embree glfw-x11 gtk3 opencl-icd-loader)
optdepends=("opencl-dirver: for gpu acceleration"
"python-pyside: for pyluxcoretools gui")
makedepends=(git doxygen cmake python-pyside-tools opencl-headers)
conflicts=(luxrays-hg)
options=('!buildflags')
source=("https://github.com/LuxCoreRender/LuxCore/archive/${pkgname}_v${pkgver}.tar.gz"
"python.patch"
)
md5sums=('0db60d1e436ab4207b0b75e04e86b6ec'
'c3536b26275f02baf1d23571690f65ec')
prepare() {
cd ${srcdir}/LuxCore-${pkgname}_v${pkgver}/
patch -Np1 < ../python.patch
}
build() {
cd ${srcdir}/LuxCore-${pkgname}_v${pkgver}/
# mkdir -p build
# cd build
cmake -DBUILD_SHARED_LIBS=ON .
make
}
package() {
cd ${srcdir}/LuxCore-${pkgname}_v${pkgver}/
install -d -m755 "$pkgdir"/usr/{bin,include,lib}
install -m755 bin/* "$pkgdir"/usr/bin
install -m644 lib/* "$pkgdir"/usr/lib
cp -a include "$pkgdir"/usr
# install pyluxcore to the Python search path
_pypath=`pacman -Ql python | sed -n '/\/usr\/lib\/python[^\/]*\/$/p' | cut -d" " -f 2`
install -d -m755 "$pkgdir/$_pypath"
mv "$pkgdir"/usr/lib/pyluxcore.so "$pkgdir/$_pypath"
}
# vim:set ts=2 sw=2 et:
|