updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libpano13-svn / PKGBUILD
blobd48c0c8a046a3fbb198f2799757281e1a9cc8eb5
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=libpano13-svn
3 pkgver=1304
4 pkgrel=1
5 pkgdesc="Basic library to calculate panoramical pictures - core functions of the panotools"
6 url="http://panotools.sourceforge.net/"
7 arch=('i686' 'x86_64')
8 license=('GPL2')
9 depends=('libpng' 'libtiff')
10 makedepends=('subversion')
11 provides=('libpano13=2.9.17')
12 conflicts=('libpano13')
13 options=(!libtool)
14 source=()
15 md5sums=()
17 _svntrunk="https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano"
18 _svnmod="panotools"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to $_svnmod.sourceforge.net SVN server...."
23   if [ -d $_svnmod/.svn ]; then
24     cd $_svnmod && svn up -r $pkgver
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   if [ -e "$srcdir"/$_svnmod-build ]; then
32     rm -rf "$srcdir"/$_svnmod-build
33   fi
35   mkdir -p "$srcdir"/$_svnmod-build
36   cd "$srcdir"/$_svnmod-build
38   "$srcdir"/$_svnmod/bootstrap --prefix=/usr --with-java=no --mandir=/usr/share/man
39   make
42 package() {
43   cd "$srcdir"/$_svnmod-build
44   make DESTDIR="$pkgdir" install