updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / luxrays-hg / PKGBUILD
blob30139192d46e81bc8b995de32b0b8ee2b737bbbe
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 # Contributor: Alex Combas <alex.combas@gmail.com>
3 pkgname=luxrays-hg
4 pkgver=901
5 pkgrel=1
6 pkgdesc="A renderer dedicated to accelerating the ray intersection process by using GPUs"
7 arch=('i686' 'x86_64')
8 url="http://www.luxrender.net/wiki/LuxRays"
9 license=('GPL')
10 depends=('freeimage' 'freeglut' 'glew' 'libcl')
11 makedepends=('mercurial' 'cmake' 'boost' 'opencl-headers')
12 provides=('luxrays')
13 conflicts=('luxrays')
15 _hgroot="http://bitbucket.org/luxrender"
16 _hgrepo="luxrays"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to Mercurial server...."
22   if [ -d $_hgrepo ] ; then
23     cd $_hgrepo
24     hg pull -u
25   else
26     hg clone $_hgroot/$_hgrepo $_hgrepo
27   fi
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
37   make
40 package() {
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