diff options
author | Lukáš Jirkovský | 2018-04-17 21:50:04 +0200 |
---|---|---|
committer | Lukáš Jirkovský | 2018-04-17 21:50:04 +0200 |
commit | 9383b07833f2804c3f18daab79ac835338c6b836 (patch) | |
tree | 69adc1abd90c19c4cc187dcf688e4775fdf57eb3 | |
parent | e5a3363acd9058bb9600de85499c6eaa12f835d4 (diff) | |
download | aur-9383b07833f2804c3f18daab79ac835338c6b836.tar.gz |
update for embree-bvh_build changes, fix build in a clean chroot
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = luxrays-hg pkgdesc = Accelerate the ray intersection process by using GPUs - pkgver = 3752+.36522ab16096+ + pkgver = 3755+.ceb10f796325+ pkgrel = 1 url = http://www.luxrender.net/ arch = x86_64 @@ -1,9 +1,8 @@ # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com> # Contributor: Alex Combas <alex.combas@gmail.com> # Comaintainer: bartus <aur@bartus.33mail.com> -_pyver=$(python -c "from sys import version_info; print(\"%d.%d\" % (version_info[0],version_info[1]))") pkgname=luxrays-hg -pkgver=3752+.36522ab16096+ +pkgver=3755+.ceb10f796325+ pkgrel=1 pkgdesc="Accelerate the ray intersection process by using GPUs" arch=('x86_64') @@ -42,6 +41,8 @@ build() { cmake . \ -DCMAKE_INSTALL_PREFIX=/usr \ + -DEMBREE_INCLUDE_PATH=/usr/include/embree-bvh_build \ + -DEMBREE_LIBRARY=/usr/lib/embree-bvh_build/libembree.so.2 \ -DCMAKE_SKIP_RPATH=ON \ -DLUXRAYS_DISABLE_OPENCL=OFF # this sucks, but luxrays doesn't seem to honor CMAKE_*_LINKER_FLAGS @@ -59,8 +60,9 @@ package() { cp -a include "$pkgdir"/usr # install pyluxcore to the Python search path - install -d -m755 "$pkgdir"/usr/lib/python${_pyver}/ - mv "$pkgdir"/usr/lib/pyluxcore.so "$pkgdir"/usr/lib/python${_pyver}/ + _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: |