mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-03 08:07:21 +08:00
65 lines
2.5 KiB
Bash
65 lines
2.5 KiB
Bash
# Contributions from AUR: https://aur.archlinux.org/packages/qgis/
|
|
|
|
pkgname=qgis
|
|
pkgver=2.12.3
|
|
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=('bison' 'cfitsio' 'curl' 'flex' 'gdal' 'jasper' 'libmariadbclient' 'libspatialite' 'libxslt'
|
|
'postgresql-libs' 'pyqt4-python2' 'python2' 'qscintilla-python2' 'python2-psycopg2'
|
|
'qca' 'qt' 'qwt6' 'spatialindex' 'sqlite3')
|
|
makedepends=('cmake' 'fcgi' 'grass' 'gsl' 'netcdf' 'postgis' 'python2-sip')
|
|
optdepends=('fcgi: qgis mapserver'
|
|
'grass: grass plugin'
|
|
'gsl: georeferencer'
|
|
'python2-sip: python-support'
|
|
'postgis: postgis support and SPIT plugin')
|
|
source=("http://qgis.org/downloads/${pkgname}-${pkgver}.tar.bz2")
|
|
sha1sums=('b2b8b6bda01ebec7ccbc8ab41d0e00fa6be217be')
|
|
|
|
|
|
prepare() {
|
|
rm -rf ${srcdir}/${pkgname}-${pkgver}/build
|
|
mkdir ${srcdir}/${pkgname}-${pkgver}/build
|
|
}
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}/build
|
|
cmake ../ \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DWITH_GRASS=OFF \
|
|
-DGRASS_PREFIX=/opt/grass \
|
|
-DGRASS_INCLUDE_DIR=/opt/grass/include/ \
|
|
-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 ${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"
|
|
}
|