mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
73 lines
2.3 KiB
Bash
73 lines
2.3 KiB
Bash
pkgname=qgis
|
|
pkgver=3.4.0
|
|
pkgrel=2
|
|
pkgdesc='Geographic Information System (GIS) that supports vector, raster & database formats'
|
|
url='https://qgis.org/'
|
|
license=(GPL)
|
|
arch=(x86_64)
|
|
depends=(gdal hicolor-icon-theme libzip python3-qscintilla-qt5 qca
|
|
qt5-3d qt5-webkit qtkeychain qt5-serialport
|
|
spatialindex python3-sip qt5-svg qwt proj)
|
|
makedepends=(cmake fcgi gsl python3-six qt5-tools sip grass opencl-headers)
|
|
optdepends=('fcgi: Map server'
|
|
'gpsbabel: GPS Tools plugin'
|
|
'gsl: Georeferencer plugin'
|
|
'python3-gdal: DB Manager plugin; Processing plugin'
|
|
'python3-jinja: MetaSearch plugin'
|
|
'python3-owslib: MetaSearch plugin'
|
|
'python3-psycopg2: DB Manager plugin; Processing plugin'
|
|
'python3-pygments: MetaSearch plugin'
|
|
'python3-numpy: Processing plugin'
|
|
'python3-yaml: Processing plugin')
|
|
source=("https://qgis.org/downloads/$pkgname-$pkgver.tar.bz2")
|
|
sha256sums=('b63a6ebbd4e4afb2820887b18b0aa41e3c7862f7fbdc8a121d6fcd75f0321e98')
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# Find osgQt
|
|
sed -e 's/osgQt5 osgQt/osgQt/' \
|
|
-e 's/osgQt5d osgQtd/osgQt/' \
|
|
-i src/plugins/globe/CMakeModules/FindOSG.cmake
|
|
|
|
# Remove mime types already defined by freedesktop.org
|
|
sed -e '/type="image\/tiff"/,/<\/mime-type>/d' \
|
|
-e '/type="image\/jpeg"/,/<\/mime-type>/d' \
|
|
-e '/type="image\/jp2"/,/<\/mime-type>/d' \
|
|
-e '/type="application\/x-adobe-mif"/,/<\/mime-type>/d' \
|
|
-i debian/qgis.xml
|
|
|
|
sed 's,QCA REQUIRED,Qca-qt5 REQUIRED,' -i CMakeLists.txt
|
|
|
|
[[ -d build ]] || mkdir build
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver/build
|
|
|
|
cmake -G "Unix Makefiles" ../ \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DQCA_LIBRARY=/usr/lib/libqca-qt5.so.2 \
|
|
-DQCA_INCLUDE_DIR=/usr/include/qt5/Qca-qt5/QtCrypto \
|
|
-DGRASS_PREFIX=/opt/grass \
|
|
-DWITH_3D=TRUE \
|
|
-DWITH_SERVER=TRUE \
|
|
-DWITH_CUSTOM_WIDGETS=TRUE \
|
|
-DBINDINGS_GLOBAL_INSTALL=TRUE \
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
|
|
-DQGIS_MANUAL_SUBDIR=share/man \
|
|
-DWITH_QWTPOLAR=TRUE
|
|
|
|
make
|
|
|
|
# Rebuild srs database, QGIS distributes an old, buggy one
|
|
LD_LIBRARY_PATH="$PWD/output/lib/" make synccrsdb
|
|
mv /tmp/srs.db ../resources/
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver/build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|