void-packages/srcpkgs/qgis/template

39 lines
2.0 KiB
Bash

# Template file for 'qgis'
pkgname=qgis
version=3.38.3
revision=1
build_style=cmake
configure_args="-DENABLE_TESTS=OFF -DWITH_3D=True -DWITH_PDAL=True
-DGRASS_PREFIX8=${XBPS_CROSS_BASE}/usr/lib/grass"
hostmakedepends="bison flex pkg-config protobuf python3 python3-sip-PyQt5 sip"
makedepends="exiv2-devel draco-devel expat-devel freexl-devel geos-devel
gsl-devel grass-devel hdf5-devel libgdal-devel libpdal-devel librttopo-devel
libspatialindex-devel libspatialite-devel libxml2-devel libzip-devel
minizip-devel netcdf-devel ocl-icd-devel postgresql-libs-devel
proj-devel protobuf-devel python3-devel python3-PyQt-builder
python3-PyQt5-devel python3-PyQt5-devel-tools python3-PyQt5-multimedia
python3-pyqt5-qsci-devel python3-PyQt5-webkit python3-sip-PyQt5 qca-qt5-devel
qca-qt5-ossl qscintilla-qt5-devel qt5-3d-devel qt5-declarative-devel qt5-devel
qt5-gamepad-devel qt5-location-devel qt5-multimedia-devel qt5-plugin-mysql
qt5-plugin-odbc qt5-plugin-pgsql qt5-plugin-sqlite qt5-plugin-tds
qt5-serialport-devel qt5-webkit-devel qtkeychain-qt5-devel qwt-devel
sqlite-devel zlib-devel"
depends="libgdal-python3 libspatialite-devel python3-dateutil python3-dateutil
python3-Jinja2 python3-numpy python3-numpy python3-owslib python3-Pillow
python3-psycopg2 python3-Pygments python3-PyQt5 python3-PyQt5-location
python3-pyqt5-qsci python3-PyQt5-sql python3-PyQt5-svg python3-pytz
python3-requests python3-urllib3 python3-yaml qca-qt5-ossl qt5-plugin-sqlite
python3-PyQt5-multimedia python3-PyQt5-serialport"
short_desc="QGIS - A Free and Open Source Geographic Information System"
maintainer="Arjan Mossel <arjanmossel@gmail.com>"
license="GPL-2.0-only"
homepage="https://qgis.org"
distfiles="https://github.com/qgis/QGIS/archive/final-${version//./_}.tar.gz"
checksum=2294003476016b8cd1a2b9641ddd39e3ffa219a8bdfb94df911f1b5a2253f44a
post_install() {
mv ${DESTDIR}/usr/share/qgis/python ${DESTDIR}/usr/lib/qgis/
ln -s ../../lib/qgis/python ${DESTDIR}/usr/share/qgis/python
mv ${DESTDIR}/usr/man ${DESTDIR}/usr/share/
}