updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / qgis-1.6 / PKGBUILD
blob90aa2ece12b5a73f2942248e7d3791dab8188fd6
1 # Contributor: MutantMonkey <mutantmonkey@gmail.com>
2 # makepkg --source
3 pkgname=qgis-1.6
4 pkgver=15265
5 pkgrel=2
6 pkgdesc="Quantum GIS, Geographic Information System that supports vector, raster & database formats; 1.6.0 for ecw compatibility"
7 arch=('i686' 'x86_64')
8 url="http://qgis.org/"
9 license=('GPL')
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'
15             'grass: grass plugin'
16             'gsl: georeferencer  ')
17 provides=('qgis')
18 conflicts=('qgis')
19 options=('makeflags strip')
20 source=('qgis.desktop'
21         'FindQWT.diff')
22 md5sums=('8ab66039f2aba519b92f52272ec3c13e'
23           '2ae2538c43fcbb03fd063f4bee77edfd')
25 _svntrunk=https://svn.osgeo.org/qgis/branches/Release-1_6_0
26 _svnmod=qgis-1.6
28 build() {
29   cd "$srcdir"
31   if [ -d $_svnmod/.svn ]; then
32     (cd $_svnmod && svn up -r $pkgver)
33   else
34     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
35   fi
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
45   cmake . \
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/ 
56         sleep 10
57         make || return 1
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