void-packages/srcpkgs/XyGrib/template
2019-02-08 16:10:30 -02:00

33 lines
997 B
Bash

# Template file for 'XyGrib'
pkgname=XyGrib
version=1.2.4
revision=1
patch_args="-Np1"
build_style=cmake
hostmakedepends="qt5-devel pkg-config"
makedepends="jasper-devel libnova-devel nettle-devel proj-devel qt5-devel qwt-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=d3ec98e926f5c22287e8ecbf73a60a425444604f0bece396579f8f069c72ebae
if [ "$CROSS_BUILD" ]; then
make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++"
fi
post_install() {
vbin ${FILESDIR}/XyGrib
vmkdir usr/share/applications
vinstall ${FILESDIR}/XyGrib.desktop 0644 usr/share/applications
vmkdir usr/share/icons
vinstall ${FILESDIR}/XyGrib.png 0644 usr/share/icons
mv ${DESTDIR}/usr/XyGrib ${DESTDIR}/usr/share/
vmkdir usr/lib/XyGrib
mv ${DESTDIR}/usr/share/XyGrib/XyGrib ${DESTDIR}/usr/lib/XyGrib/XyGrib
}