void-packages/srcpkgs/grass/template

31 lines
1.1 KiB
Bash

# Template file for 'grass'
pkgname=grass
version=7.6.1
revision=4
_binver=${version//./}
_binver=${_binver:0:2}
build_style=gnu-configure
configure_args="--prefix=\${DESTDIR}/usr/share --bindir=\${DESTDIR}/usr/bin
--with-freetype-includes=${XBPS_CROSS_BASE}/usr/include/freetype2"
hostmakedepends="flex libgdal-tools pkg-config python-numpy tar"
makedepends="proj-devel tiff-devel libgdal-devel sqlite-devel
fftw-devel cairo-devel glu-devel wxPython-devel"
depends="python-numpy wxPython"
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/${pkgname}-${version}.tar.gz"
checksum=9e25c99cafd16ed8f5e2dca75b5a10dc2af0568dbedf3fc39f1c5a0a9c840b0b
python_version=2 #unverified
nocross="tries to execute target binaries"
post_install() {
# move grass76 libraries from /usr/share to /usr/lib
vmkdir usr/lib
mv ${DESTDIR}/usr/share/grass* ${DESTDIR}/usr/lib
# fixes a todo in GISBASE
sed -i ${DESTDIR}/usr/bin/grass${_binver} \
-e "105s;\(gisbase =\).*;\1 \"/usr/lib/grass-${version}\";"
}