2015-03-15 22:00:41 +08:00
|
|
|
# Contributions from Arch: https://aur.archlinux.org/packages/qgis/
|
2011-04-16 18:53:15 +08:00
|
|
|
|
|
|
|
pkgname=qgis
|
2015-11-30 04:01:37 +08:00
|
|
|
pkgver=2.12.0
|
2015-03-15 22:00:41 +08:00
|
|
|
pkgrel=1
|
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'
|
|
|
|
'jasper'
|
|
|
|
'libmariadbclient'
|
|
|
|
'libspatialite'
|
2015-11-30 04:01:37 +08:00
|
|
|
'libxslt'
|
2014-06-28 17:33:08 +08:00
|
|
|
'postgresql-libs'
|
|
|
|
'pyqt4-python2'
|
|
|
|
'python2'
|
|
|
|
'qscintilla-python2'
|
|
|
|
'python2-psycopg2'
|
2015-11-30 04:01:37 +08:00
|
|
|
'qca'
|
2014-06-28 17:33:08 +08:00
|
|
|
'qt'
|
2015-03-15 22:00:41 +08:00
|
|
|
'qwt6'
|
2014-06-28 17:33:08 +08:00
|
|
|
'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")
|
2015-11-30 04:01:37 +08:00
|
|
|
sha512sums=('e2f83e329d7dc59b83eed60ff26ddc8d9e9b05f86bb6b75294be5b0cdb2a67780597f46f87c365047452de4c09d2ec24f06109f0db8e17752988230264d352fb')
|
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 ${srcdir}/${pkgname}-${pkgver}/build
|
|
|
|
cmake ../ \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2015-03-21 17:26:12 +08:00
|
|
|
-DWITH_GRASS=OFF \
|
2014-06-28 17:33:08 +08:00
|
|
|
-DGRASS_PREFIX=/opt/grass \
|
2015-03-15 22:00:41 +08:00
|
|
|
-DGRASS_INCLUDE_DIR=/opt/grass/include/ \
|
2014-06-28 17:33:08 +08:00
|
|
|
-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"
|
2015-11-30 04:01:37 +08:00
|
|
|
}
|