1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 pkgdesc="Computer vision library"
7 url="http://hci.iwr.uni-heidelberg.de/vigra/"
9 depends=('libpng' 'libtiff' 'gcc-libs' 'fftw' 'openexr')
10 makedepends=('mercurial' 'cmake' 'doxygen')
16 _hgroot="http://www.informatik.uni-hamburg.de/~meine/hg"
21 msg "Connecting to Mercurial server...."
23 if [ -d $_hgrepo ] ; then
26 msg "The local files are updated."
28 hg clone $_hgroot $_hgrepo
31 msg "Mercurial checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_hgrepo-build"
35 mkdir "$srcdir/$_hgrepo-build"
36 cd "$srcdir/$_hgrepo-build"
38 cmake -DCMAKE_INSTALL_PREFIX=/usr \
39 -DDOCINSTALL=share/doc \
40 -DCMAKE_SHARED_LINKER_FLAGS="-lpthread" \
46 cd "$srcdir/$_hgrepo-build"
51 cd "$srcdir/$_hgrepo-build"
52 make DESTDIR="$pkgdir/" install
54 install -D -m644 "$srcdir/$_hgrepo/"LICENSE.txt "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE