1 # Contributor: MutantMonkey <mutantmonkey@gmail.com>
6 pkgdesc="Quantum GIS, Geographic Information System that supports vector, raster & database formats; 1.6.0 for ecw compatibility"
10 depends=('libmysqlclient' 'postgresql-libs' 'sqlite3' 'jasper' 'curl' 'qt' 'python2' 'python2-qt' 'giflib' 'xerces-c' 'cfitsio' 'qwt5' 'gdal')
11 makedepends=('subversion' 'grass' 'gsl' 'postgis' 'netcdf' 'cmake' 'fcgi' 'python2-sip')
12 optdepends=('postgis: postgis support and SPIT plugin'
13 'fcgi: qgis mapserver'
14 'python2-sip: python-support'
16 'gsl: georeferencer ')
19 options=('makeflags strip')
20 source=('qgis.desktop'
22 md5sums=('8ab66039f2aba519b92f52272ec3c13e'
23 '2ae2538c43fcbb03fd063f4bee77edfd')
25 _svntrunk=https://svn.osgeo.org/qgis/branches/Release-1_6_0
31 if [ -d $_svnmod/.svn ]; then
32 (cd $_svnmod && svn up -r $pkgver)
34 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
37 msg "SVN checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_svnmod-build"
41 cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
42 cd "$srcdir/$_svnmod-build"
43 patch -p0 -i ${srcdir}/FindQWT.diff
46 -DCMAKE_BUILD_TYPE=Release \
47 -DCMAKE_SKIP_RPATH=ON \
48 -DCMAKE_INSTALL_PREFIX=/usr \
49 -DGRASS_PREFIX=/opt/grass \
50 -DQGIS_MANUAL_SUBDIR=share/man \
51 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
52 -DPYTHON_EXECUTABLE=/usr/bin/python2 \
53 -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages \
54 -DPYTHON_INCLUDE_PATH=/usr/include/python2.7/
58 make install DESTDIR=${pkgdir}
60 # install some freedesktop.org compatibility
61 install -D -m644 ${srcdir}/qgis.desktop \
62 ${pkgdir}/usr/share/applications/qgis.desktop