vp-build/srcpkgs/gnome-podcasts/template

31 lines
1.1 KiB
Bash

# Template file for 'gnome-podcasts'
pkgname=gnome-podcasts
version=0.5.1
revision=1
wrksrc="podcasts-${version}"
build_style=meson
build_helper="rust"
hostmakedepends="cargo gettext glib-devel pkg-config sqlite-devel"
makedepends="gstreamer1-devel gst-plugins-bad1-devel gst-plugins-base1-devel
gtk+3-devel libhandy1-devel openssl-devel sqlite-devel texinfo rust-std"
short_desc="Listen to your favorite podcasts"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://wiki.gnome.org/Apps/Podcasts"
changelog="https://gitlab.gnome.org/World/podcasts/-/raw/master/CHANGELOG.md"
distfiles="https://gitlab.gnome.org/World/podcasts/-/archive/${version}/podcasts-${version}.tar.gz"
checksum=73c2d6422e4084e389f07d6daee2339512f68d5b7e38cfc7db35466b16c13500
make_check=no # Unable to init server: Could not connect: Connection refused
export GETTEXT_BIN_DIR=/usr/bin
export GETTEXT_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib/gettext"
export GETTEXT_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include"
post_patch() {
[ -z "$CROSS_BUILD" ] && return 0
vsed -i scripts/cargo.sh \
-e 's%"$CARGO_TARGET_DIR"/%&${RUST_TARGET}/%' \
-e '/CARGO_HOME/d'
}