New package: fragments-2.0.2

This commit is contained in:
Michal Vasilek 2022-02-07 17:13:51 +01:00 committed by Echo
parent e7218ee358
commit d41e5ba5c9
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- a/meson.build
+++ b/meson.build
@@ -17,7 +17,7 @@
name = 'Fragments'
app_id = 'de.haeckerfelix.Fragments'
profile = get_option('profile')
-vcs_tag = run_command('git', 'rev-parse', '--short', 'HEAD').stdout().strip()
+vcs_tag = 'none'
localedir = join_paths(get_option('prefix'), get_option('localedir'))
datadir = get_option('datadir')
pkgdatadir = join_paths(get_option('prefix'), datadir, meson.project_name())

View file

@ -0,0 +1,24 @@
# 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
}