updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qgis-svn / PKGBUILD
blob053441f93ddf71c404843de598683cb7744d26e3
1 # Contributor: MutantMonkey <mutantmonkey@gmail.com>
2 pkgname=qgis-svn
3 pkgver=15066
4 pkgrel=2
5 pkgdesc="A Geographic Information System (GIS) that supports vector, raster & database formats; dev version"
6 arch=('i686' 'x86_64')
7 url="http://qgis.org/"
8 license=('GPL')
9 depends=('jasper' 'curl' 'qt' 'gsl' 'grass' 'python2' 'python2-qt' 'giflib' 'xerces-c')
10 makedepends=('subversion' 'postgis>=1.4' 'netcdf' 'cmake')
11 provides=('qgis')
12 conflicts=('qgis')
13 options=('!makeflags')
14 source=(qgis.desktop)
15 md5sums=('8ab66039f2aba519b92f52272ec3c13e')
16 sha256sums=('1d487c6d4ce207593e687c6f6873b4463b1f5bda2a3edb1383735f9f3e27ff20')
18 _svntrunk=https://svn.osgeo.org/qgis/trunk/qgis
19 _svnmod=qgis_trunk
21 build() {
22   cd "$srcdir"
24   if [ -d $_svnmod/.svn ]; then
25     (cd $_svnmod && svn up -r $pkgver)
26   else
27     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28   fi
30   msg "SVN checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_svnmod-build"
34   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
35   cd "$srcdir/$_svnmod-build"
37   cmake . \
38                 -DCMAKE_BUILD_TYPE=Release \
39                 -DCMAKE_SKIP_RPATH=ON \
40                 -DCMAKE_INSTALL_PREFIX=/usr \
41                 -DGRASS_PREFIX=/opt/grass \
42                 -DQGIS_MANUAL_SUBDIR=share/man
44         sleep 10
45         make || return 1
46         make install DESTDIR=${pkgdir}
48         # install some freedesktop.org compatibility
49         install -D -m644 ${srcdir}/qgis.desktop \
50                 ${pkgdir}/usr/share/applications/qgis.desktop