updated on Fri Jan 13 00:14:41 UTC 2012
[aur-mirror.git] / prone / PKGBUILD
blobab8ce8a811fd7430169601c8d256b020970af510
1 # Maintainer: Pierre Chiche <pierre dot chiche at gmail dot com>
2 pkgname=prone
3 pkgver=0.2.2
4 pkgrel=1
5 pkgdesc="Raytracing client for collaborative rendering farm corefarm.org."
6 arch=('i686' 'x86_64')
7 url="http://corefarm.org/"
8 license=('GPL')
9 depends=('boost' 'libjpeg' 'yafaray')
10 makedepends=('scons')
11 source=(http://www.corefarm.org/downloads/${pkgname}/${pkgname}_${pkgver}.tar.gz)
12 md5sums=(4ac1d397eb6549dceb6f05d486d23be1)
14 build() {
15    cd "${srcdir}/${pkgname}_${pkgver}"
17    sed 's|/usr/local|/usr|' -i ${srcdir}/${pkgname}_${pkgver}/yafaray/config/linux2-config.py
18    sed 's|boost_thread|boost_thread-mt|' -i ${srcdir}/${pkgname}_${pkgver}/yafaray/config/linux2-config.py
20    sed 's|/usr/local|/usr|' -i ${srcdir}/${pkgname}_${pkgver}/corefarm_wrapper/config/linux2-config.py
21    sed 's|boost_thread|boost_thread-mt|' -i ${srcdir}/${pkgname}_${pkgver}/corefarm_wrapper/config/linux2-config.py
23    cd "${srcdir}/${pkgname}_${pkgver}/yafaray"
24    scons   PREFIX="/usr" || return 1
26    cd "${srcdir}/${pkgname}_${pkgver}/corefarm_wrapper"
27    scons   PREFIX="/usr" || return 1
29    install -D -m 755 ${srcdir}/${pkgname}_${pkgver}/corefarm_wrapper/build/slave/prone ${pkgdir}/usr/bin/prone