void-packages/srcpkgs/grass/template

29 lines
1.1 KiB
Bash

# Template file for 'grass'
pkgname=grass
version=8.2.1
revision=1
_binver=${version//./}
_binver=${_binver:0:2}
build_style=gnu-configure
configure_args="--prefix=/opt/grass
--with-freetype-includes=${XBPS_CROSS_BASE}/usr/include/freetype2"
hostmakedepends="flex libgdal-tools pkg-config python3-numpy python3-six tar"
makedepends="proj-devel tiff-devel libgdal-devel sqlite-devel
fftw-devel cairo-devel glu-devel"
depends="python3-numpy python3-dateutil python3-Pillow python3-matplotlib
python3-six python3-ply wxPython4"
short_desc="Geographic Resources Analysis Support System - GIS"
maintainer="Alex Jarosch <research@alexj.at>"
license="GPL-2.0-or-later"
homepage="https://grass.osgeo.org/"
distfiles="https://grass.osgeo.org/grass${_binver}/source/grass-${version}.tar.gz"
checksum=8116202fb15352646442862230c7ca48ff8943b7bb83626160ce134980843abd
python_version=3
nocross="tries to execute target binaries"
post_install() {
# This package is broken with wxPython4 (<=4.0.7),
# hence the GUI is compulsorily disabled.
vsed -i "${DESTDIR}/usr/bin/grass" -e "s/\(default_gui =\).*/\1 \"text\"/"
}