void-packages/srcpkgs/shortwave/template

28 lines
852 B
Bash

# Template file for 'shortwave'
pkgname=shortwave
version=4.0.1
revision=1
build_style=meson
build_helper=rust
hostmakedepends="cargo desktop-file-utils gettext glib-devel
gtk4-update-icon-cache pkg-config"
makedepends="lcms-devel libadwaita-devel libseccomp-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=2233ccb845be1b104dbf637ef1db99b2a2f29a51270b47d0894c03048ac0637c
post_patch() {
# remove git dep
ln -sf /bin/false ${XBPS_WRAPPERDIR}/git
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / &%"
fi
}