updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / ramen-svn / PKGBUILD
blobffb3c2501052d44ed58c6a9b1ced2d0e864bfd34
1 #!/usr/bin/makepkg
3 # Contributer: N30N <archlinux@alunamation.com>
4 # Contributer: tm3da <me@tm3da.eu>
6 pkgname="ramen-svn"
7 pkgver=109
8 pkgrel=1
9 pkgdesc="A node based video compositor"
10 url="http://ramenhdr.sourceforge.net/"
11 license=("GPL2")
12 arch=("i686" "x86_64")
13 provides=("ramen")
14 replaces=("ramenhdr")
15 depends=("libgl" \
16         "glew" \
17         "boost>=1.42" \
18         "intel-tbb" \
19         "qt" \
20         "ilmbase" \
21         "openexr" \
22         "fftw-threads" \
23         "libpng" \
24         "libjpeg" \
25         "libtiff" \
26         "google-glog")
27 makedepends=("cmake" "subversion")
29 _svntrunk="https://ramenhdr.svn.sourceforge.net/svnroot/ramenhdr/trunk"
30 _svnmod="ramen"
32 build() {
33         cd ${srcdir}
34         msg "Connecting to Ramen SVN server......."
35         if [ -d ${_svnmod}/.svn ]; then
36                 (cd ${_svnmod} && svn update -r ${pkgver}) || return 1
37                 rm -rf ${srcdir}/${_svnmod}-build
38         else
39                 svn co ${_svntrunk} ${_svnmod} --config-dir ./ -r ${pkgver} || return 1
40         fi
42         cp -rf ${_svnmod} ${_svnmod}-build
43         mkdir ${_svnmod}-build/bin
44         cd ${_svnmod}-build/bin
46         msg "Starting build process."
47         cmake -DCMAKE_BUILD_TYPE=Release ../ || return 1
48         make || return 1
49         make DESTDIR=${pkgdir} install
52 # vim: set noet ff=unix: