void-packages/srcpkgs/fragments/template

25 lines
802 B
Bash

# Template file for 'fragments'
pkgname=fragments
version=2.1.1
revision=2
build_style=meson
build_helper="rust"
hostmakedepends="desktop-file-utils cargo pkg-config gettext glib-devel
gtk4-update-icon-cache"
makedepends="sqlite-devel gtk4-devel libadwaita-devel libglib-devel dbus-devel
openssl-devel rust-std"
depends="transmission"
short_desc="BitTorrent Client"
maintainer="Orphaned <orphan@voidlinux.org>"
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=5d573b99565d730101d41541731efe70df5bd72bab27de9f3da17b847e3684a8
post_patch() {
if [ "$CROSS_BUILD" ]; then
vsed -i src/meson.build \
-e "s%rust_target /%'${RUST_TARGET}' / rust_target /%"
fi
}