mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 03:17:15 +08:00
qgis: Update to 2.2.0
This commit is contained in:
parent
807d362f81
commit
466f7b76f9
132
qgis/PKGBUILD
132
qgis/PKGBUILD
@ -1,51 +1,105 @@
|
||||
# Apps Packages for Chakra, part of chakra-project.org
|
||||
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
|
||||
# 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 >
|
||||
|
||||
pkgname=qgis
|
||||
pkgver=1.8.0
|
||||
pkgrel=4
|
||||
pkgdesc='A Geographic Information System (GIS) that supports vector, raster & database formats.'
|
||||
pkgver=2.2.0
|
||||
pkgrel=1
|
||||
pkgdesc='A Geographic Information System (GIS) that supports vector, raster and database formats'
|
||||
url='http://qgis.org/'
|
||||
license=('GPL')
|
||||
arch=('x86_64')
|
||||
depends=('libmysqlclient' 'postgresql-libs' 'sqlite3' 'jasper' 'curl' 'qt' 'python2' 'python2-pyqt4' 'giflib' 'xerces-c' 'cfitsio' 'qwt' 'gdal' 'flex' 'bison' 'graphviz' 'libspatialite' 'spatialindex')
|
||||
makedepends=('grass' 'gsl' 'postgis' 'netcdf' 'cmake' 'fcgi' 'sip')
|
||||
optdepends=('postgis: postgis support and SPIT plugin'
|
||||
'fcgi: qgis mapserver'
|
||||
'sip: python-support'
|
||||
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'
|
||||
'grass: grass plugin'
|
||||
'gsl: georeferencer ')
|
||||
screenshot=(http://qgis.org/images/qgis15.jpg)
|
||||
categories=('education')
|
||||
source=("http://qgis.org/downloads/${pkgname}-${pkgver}.tar.bz2"
|
||||
'qgis.desktop')
|
||||
md5sums=('1d60520f81d7763c026d0af887ac9a05'
|
||||
'8ab66039f2aba519b92f52272ec3c13e')
|
||||
'gsl: georeferencer'
|
||||
'python2-sip: python-support'
|
||||
'postgis: postgis support and SPIT plugin')
|
||||
source=("http://qgis.org/downloads/${pkgname}-${pkgver}.tar.bz2")
|
||||
sha512sums=('c41c84d0a6173c987ef95c8693cb789a6b2a20da6a299aef0f59e27a2e64c03f51fa1d2103bb67b8b188b0ea9d03e203c552fd642eefea349cc579297c9dd788')
|
||||
|
||||
prepare() {
|
||||
rm -rf ${srcdir}/${pkgname}-${pkgver}/build
|
||||
mkdir ${srcdir}/${pkgname}-${pkgver}/build
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${srcdir}
|
||||
rm -rf build
|
||||
mkdir build
|
||||
cd build
|
||||
|
||||
# -DCMAKE_SKIP_RPATH=ON commenting that out should fix compilation
|
||||
cmake ../${pkgname}-${pkgver} \
|
||||
-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
|
||||
#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
|
||||
}
|
||||
|
||||
package() {
|
||||
cd build
|
||||
make DESTDIR=${pkgdir} install
|
||||
# install some freedesktop.org compatibility
|
||||
install -D -m644 ${srcdir}/${pkgname}.desktop \
|
||||
${pkgdir}/usr/share/applications/${pkgname}.desktop
|
||||
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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user