2014-06-28 17:33:08 +08:00
|
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
|
|
# Contributors: SaultDon <sault.don gmail>
|
|
|
|
# Lantald < lantald at gmx.com >
|
|
|
|
# Thomas Dziedzic < gostrc at gmail >
|
|
|
|
# dibblethewrecker dibblethewrecker.at.jiwe.dot.org
|
|
|
|
# Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
|
|
|
# Eric Forgeot < http://esclinux.tk >
|
2011-04-16 18:53:15 +08:00
|
|
|
|
|
|
|
pkgname=qgis
|
2014-12-03 07:27:13 +08:00
|
|
|
pkgver=2.6.1
|
2014-12-18 22:38:32 +08:00
|
|
|
pkgrel=2
|
2014-06-28 17:33:08 +08:00
|
|
|
pkgdesc='A Geographic Information System (GIS) that supports vector, raster and database formats'
|
2011-04-16 18:53:15 +08:00
|
|
|
url='http://qgis.org/'
|
|
|
|
license=('GPL')
|
2013-10-03 19:46:40 +08:00
|
|
|
arch=('x86_64')
|
2014-06-28 17:33:08 +08:00
|
|
|
depends=('bison'
|
|
|
|
'cfitsio'
|
|
|
|
'curl'
|
|
|
|
'flex'
|
|
|
|
'gdal'
|
|
|
|
'giflib'
|
|
|
|
'jasper'
|
|
|
|
'libmariadbclient'
|
|
|
|
'libspatialite'
|
|
|
|
'postgresql-libs'
|
|
|
|
'pyqt4-python2'
|
|
|
|
'python2'
|
|
|
|
'qscintilla-python2'
|
|
|
|
'python2-psycopg2'
|
|
|
|
'qt'
|
|
|
|
'qwt'
|
|
|
|
'spatialindex'
|
|
|
|
'sqlite3')
|
|
|
|
makedepends=('cmake'
|
|
|
|
'fcgi'
|
|
|
|
'grass'
|
|
|
|
'gsl'
|
|
|
|
'netcdf'
|
|
|
|
'postgis'
|
|
|
|
'python2-sip')
|
|
|
|
optdepends=('fcgi: qgis mapserver'
|
2011-04-16 18:53:15 +08:00
|
|
|
'grass: grass plugin'
|
2014-06-28 17:33:08 +08:00
|
|
|
'gsl: georeferencer'
|
|
|
|
'python2-sip: python-support'
|
|
|
|
'postgis: postgis support and SPIT plugin')
|
|
|
|
source=("http://qgis.org/downloads/${pkgname}-${pkgver}.tar.bz2")
|
2014-12-03 07:27:13 +08:00
|
|
|
md5sums=('e6d4233b5f8d4c7a77e289a9c794089f')
|
2011-04-16 18:53:15 +08:00
|
|
|
|
2014-06-28 17:33:08 +08:00
|
|
|
prepare() {
|
|
|
|
rm -rf ${srcdir}/${pkgname}-${pkgver}/build
|
|
|
|
mkdir ${srcdir}/${pkgname}-${pkgver}/build
|
|
|
|
}
|
2012-08-11 18:13:50 +08:00
|
|
|
|
2014-06-28 17:33:08 +08:00
|
|
|
build() {
|
|
|
|
#cd "${pkgname}-${pkgver}"
|
|
|
|
#patch -Np1 -i "${srcdir}/rev-349a4c97.diff"
|
|
|
|
#patch -Np1 -i "${srcdir}/QgsFieldValidator.diff"
|
|
|
|
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}/build
|
|
|
|
#-DCMAKE_SKIP_RPATH=ON \
|
|
|
|
#-DENABLE_TESTS=OFF \
|
|
|
|
#-DQT_QMAKE_EXECUTABLE=qmake \
|
|
|
|
#-DQWTPOLAR_INCLUDE_DIR=/usr/include/qwt \
|
|
|
|
#-DQWTPOLAR_LIBRARY=/usr/lib/libqwtpolar.so \
|
|
|
|
#-DQWT_INCLUDE_DIR=/usr/include/qwt \
|
|
|
|
#-DQWT_LIBRARY=/usr/lib/libqwt.so \
|
|
|
|
#-DWITH_INTERNAL_QWTPOLAR=FALSE \
|
|
|
|
#-DWITH_MAPSERVER=TRUE
|
|
|
|
cmake ../ \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DGRASS_PREFIX=/opt/grass \
|
|
|
|
-DQGIS_MANUAL_SUBDIR=share/man \
|
|
|
|
-DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
|
|
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python2 \
|
|
|
|
-DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python2.7/site-packages \
|
|
|
|
-DPYTHON_INCLUDE_PATH=/usr/include/python2.7
|
|
|
|
make
|
2011-04-16 18:53:15 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2014-06-28 17:33:08 +08:00
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}/build
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
|
|
|
|
# create a more user-friendly application name link
|
|
|
|
ln -s /usr/bin/qgis "${pkgdir}/usr/bin/quantum-gis"
|
|
|
|
|
|
|
|
# install some freedesktop.org compatibility
|
|
|
|
install -D -m644 "${srcdir}/${pkgname}-${pkgver}/debian/qgis.desktop" \
|
|
|
|
"${pkgdir}/usr/share/applications/qgis.desktop"
|
|
|
|
install -D -m644 "${srcdir}/${pkgname}-${pkgver}/debian/qbrowser.desktop" \
|
|
|
|
"${pkgdir}/usr/share/applications/qbrowser.desktop"
|
|
|
|
install -dm755 "${pkgdir}/usr/share/pixmaps" \
|
|
|
|
"${pkgdir}/usr/share/mimelnk/application"
|
|
|
|
for mime in "${srcdir}/${pkgname}-${pkgver}/debian/mime/application/"*.desktop
|
|
|
|
do install -m644 "${mime}" \
|
|
|
|
"${pkgdir}/usr/share/mimelnk/application"
|
|
|
|
done
|
|
|
|
ln -s /usr/share/qgis/images/icons/qgis-icon.png "${pkgdir}/usr/share/pixmaps/qgis-icon.png"
|
|
|
|
ln -s /usr/share/qgis/images/icons/qgis-mime-icon.png "${pkgdir}/usr/share/pixmaps/qgis-mime-icon.png"
|
|
|
|
|
|
|
|
# enable qgis for python by setting PYTHONPATH
|
|
|
|
#install -Dm644 "${srcdir}/qgis.sh" \
|
|
|
|
#"${pkgdir}/etc/profile.d/qgis.sh"
|
2011-04-16 18:53:15 +08:00
|
|
|
}
|