1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 pkgdesc="A frontend to the panorama-tools"
7 url="http://hugin.sourceforge.net/"
9 depends=('openexr' 'exiv2' 'wxgtk' 'boost-libs' 'libpano13-svn' 'python2' \
10 'enblend-enfuse' 'perl-exiftool' 'glew' 'desktop-file-utils')
11 makedepends=('mercurial' 'cmake' 'boost' 'tclap' 'swig')
12 optdepends=('autopano-sift-c: automatic control point generator')
13 provides=('hugin' 'hugin-svn')
14 conflicts=('hugin' 'hugin-svn')
15 replaces=('hugin-svn')
20 _hgroot="http://hugin.hg.sourceforge.net:8000/hgroot/hugin/hugin"
26 msg "Connecting to Mercurial server...."
28 if [ -d $_hgrepo ] ; then
31 msg "The local files are updated."
33 hg clone $_hgroot $_hgrepo
36 msg "Mercurial checkout done or server timeout"
37 msg "Starting make..."
39 if [ -e "$srcdir"/$_hgrepo-build ]; then
40 rm -rf "$srcdir"/$_hgrepo-build
43 mkdir -p "$srcdir"/$_hgrepo-build
44 cd "$srcdir"/$_hgrepo-build
46 cmake -DCMAKE_INSTALL_PREFIX=/usr \
48 -DCMAKE_SHARED_LINKER_FLAGS="-lpthread" \
54 cd "$srcdir"/$_hgrepo-build
55 make DESTDIR="$pkgdir" install
58 # vim:set ts=2 sw=2 et: