void-packages/srcpkgs/fragments/template

25 lines
784 B
Bash

# Template file for 'fragments'
pkgname=fragments
version=2.0.2
revision=1
wrksrc="Fragments-$version"
build_style=meson
build_helper="rust"
hostmakedepends="cargo pkg-config gettext glib-devel"
makedepends="sqlite-devel gtk4-devel libadwaita-devel libglib-devel dbus-devel
openssl-devel rust-std"
short_desc="BitTorrent Client"
maintainer="Michal Vasilek <michal@vasilek.cz>"
license="GPL-3.0-or-later"
homepage="https://gitlab.gnome.org/World/Fragments"
distfiles="https://gitlab.gnome.org/World/Fragments/-/archive/$version/Fragments-$version.tar.gz"
checksum=a3f32771e82aaac33ce1fbe40f83204fb6fade20d5cbffbd862b30ce9d8dedcf
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i build-aux/cargo.sh \
-e 's%"$CARGO_TARGET_DIR"/%&${RUST_TARGET}/%' \
-e '/CARGO_HOME/d'
fi
}