34 lines
969 B
Bash
34 lines
969 B
Bash
# Template file for 'XyGrib'
|
|
pkgname=XyGrib
|
|
version=1.0.1
|
|
revision=1
|
|
wrksrc="${pkgname}-${version}-src"
|
|
patch_args="-Np1"
|
|
build_style=gnu-makefile
|
|
hostmakedepends="qt5-devel"
|
|
makedepends="jasper-devel libnova-devel nettle-devel proj-devel qt5-devel qwt-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/releases/download/v${version}/XyGrib-${version}-src.tgz"
|
|
checksum=2309505161577a6bf4787b8b9e7ead4ca9dfdb05b3e655b4583d69bdb9f2be9e
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
make_build_args="LINK=${XBPS_CROSS_TRIPLET}-c++"
|
|
fi
|
|
|
|
pre_configure() {
|
|
sed -i "s|\$(HOME)|$DESTDIR/usr/libexec|" Makefile
|
|
}
|
|
|
|
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
|
|
}
|