1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: Alex Combas <alex.combas@gmail.com>
6 pkgdesc="A renderer dedicated to accelerating the ray intersection process by using GPUs"
8 url="http://www.luxrender.net/wiki/LuxRays"
10 depends=('freeimage' 'freeglut' 'glew' 'libcl')
11 makedepends=('mercurial' 'cmake' 'boost' 'opencl-headers')
15 _hgroot="http://bitbucket.org/luxrender"
20 msg "Connecting to Mercurial server...."
22 if [ -d $_hgrepo ] ; then
26 hg clone $_hgroot/$_hgrepo $_hgrepo
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 mkdir "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
36 cmake -DCMAKE_INSTALL_PREFIX=/usr ../$_hgrepo
41 cd "$srcdir/$_hgrepo-build"
43 install -d -m755 "$pkgdir"/usr/{bin,include,lib}
44 install -m755 bin/* "$pkgdir"/usr/bin
45 install -m644 lib/* "$pkgdir"/usr/lib
46 cp -a "$srcdir"/$_hgrepo/include/luxrays "$pkgdir"/usr/include