1 # Maintainer: Lantald < lantald at gmx.com
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: dibblethewrecker dibblethewrecker.at.jiwe.dot.org
4 # Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
5 # Contributor: Eric Forgeot < http://esclinux.tk >
10 pkgdesc='Quantum GIS is a Geographic Information System (GIS) that supports vector, raster & database formats'
11 url='http://qgis.org/'
13 arch=('i686' 'x86_64')
14 # update to http://www.qgis.org/wiki/Building_QGIS_from_Source#Overview
15 depends=('libmysqlclient' 'postgresql-libs' 'sqlite3' 'jasper' 'curl' 'qt' 'python2' 'python2-qt' 'giflib' 'xerces-c' 'cfitsio' 'qwt5' 'gdal' 'flex' 'bison')
16 makedepends=('cmake' 'grass' 'gsl' 'postgis' 'netcdf' 'fcgi' 'python2-sip' 'txt2tags')
17 optdepends=('postgis: postgis support and SPIT plugin'
18 'fcgi: qgis mapserver'
19 'python2-sip: python-support'
21 'gsl: georeferencer ')
22 options=('!makeflags')
23 source=("http://qgis.org/downloads/qgis-${pkgver}.tar.bz2"
26 md5sums=('e1b3b1f33ea8d648bde0eddf54f7eb90'
27 '8ab66039f2aba519b92f52272ec3c13e')
30 # Fix insecure RPATH is weird, but just works ;)
31 # echo "os.system(\"sed -i '/^LFLAGS/s|-Wl,-rpath,.\+ ||g' gui/Makefile core/Makefile\")" >> python/configure.py.in
39 cmake ../qgis-${pkgver} \
40 -DCMAKE_BUILD_TYPE=Release \
41 -DCMAKE_SKIP_RPATH=ON \
42 -DCMAKE_INSTALL_PREFIX=/usr \
43 -DGRASS_PREFIX=/opt/grass \
44 -DQGIS_MANUAL_SUBDIR=share/man \
45 -DQWT_INCLUDE_DIR=/usr/include/qwt5 \
46 -DQWT_LIBRARY=/usr/lib/libqwt5.so \
47 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
48 -DPYTHON_EXECUTABLE=/usr/bin/python2 \
49 -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages \
50 -DPYTHON_INCLUDE_PATH=/usr/include/python2.7/
58 make DESTDIR=${pkgdir} install
60 # create a more user-friendly application name link
61 ln -s /usr/bin/qgis $pkgdir/usr/bin/quantum-gis
63 # install some freedesktop.org compatibility
64 install -D -m644 ${srcdir}/qgis.desktop \
65 ${pkgdir}/usr/share/applications/qgis.desktop