void-packages/srcpkgs/shortwave/template

24 lines
773 B
Bash

# Template file for 'shortwave'
pkgname=shortwave
version=3.2.0
revision=2
build_style=meson
build_helper=rust
hostmakedepends="pkg-config cargo gettext desktop-file-utils glib-devel
gtk-update-icon-cache"
makedepends="libadwaita-devel libshumate-devel rust-std"
depends="gst-plugins-good1"
short_desc="Listen to internet radio"
maintainer="chrysos349 <chrysostom349@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/Shortwave"
distfiles="https://gitlab.gnome.org/World/Shortwave/-/archive/${version}/${pkgname}-${version}.tar.gz"
checksum=b1d5272d41bf6dd2d7b578e3c352a0f3ca3e502cd3ec0c28ba8153c8887d08b9
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}