void-packages/srcpkgs/XyGrib/template

30 lines
907 B
Bash

# Template file for 'XyGrib'
pkgname=XyGrib
version=1.2.6.1
revision=6
build_style=cmake
hostmakedepends="qt5-devel pkg-config"
makedepends="jasper-devel libnova-devel nettle-devel proj-devel qt5-devel
qt5-tools-devel libopenjpeg2-devel"
short_desc="Weather data visulization"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://opengribs.org/"
distfiles="https://github.com/opengribs/XyGrib/archive/v${version}.tar.gz"
checksum=2dc6099293ae6f7a4bfbfc0cab590cf7ad48241d608e6d7a76e35961b9fc2157
post_patch() {
vsed -i -e '\!/usr/include/openjpeg-2.3!i /usr/include/openjpeg-2.4' \
CMakeLists.txt
}
post_install() {
vinstall debian/xygrib.desktop 0644 usr/share/applications
vinstall debian/xygrib.png 0644 usr/share/icons
mv ${DESTDIR}/usr/XyGrib ${DESTDIR}/usr/share/
vmkdir usr/bin
mv ${DESTDIR}/usr/share/XyGrib/XyGrib ${DESTDIR}/usr/bin/XyGrib
}