community/fragments: use cargo auditable build instead of cargo build

This commit is contained in:
NekoCWD 2024-05-04 20:50:09 +03:00 committed by ptrcnull
parent 92e213426e
commit 85e93cecfc
No known key found for this signature in database
GPG Key ID: 411F7B30801DD9CA
3 changed files with 25 additions and 7 deletions

View File

@ -0,0 +1,15 @@
diff --git a/src/meson.build b/src/meson.build
index 96f692d..ee77d26 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -49,9 +49,9 @@ cargo_release = custom_target(
command: [
'env',
cargo_env,
- cargo, 'build',
+ cargo, 'auditable', 'build',
cargo_options,
'&&',
'cp', 'target' / rust_target / meson.project_name(), '@OUTPUT@',
]

View File

@ -1,13 +1,13 @@
diff --git a/src/meson.build b/src/meson.build diff --git a/src/meson.build b/src/meson.build
index bf2da60..8c1069d 100644 index ee77d26..f9bb03e 100644
--- a/src/meson.build --- a/src/meson.build
+++ b/src/meson.build +++ b/src/meson.build
@@ -55,8 +55,6 @@ cargo_release = custom_target( @@ -47,8 +47,6 @@ cargo_release = custom_target(
install: true, install: true,
install_dir: get_option('bindir'), install_dir: bindir,
command: [ command: [
- 'env', - 'env',
- cargo_env, - cargo_env,
cargo, 'build', cargo, 'auditable', 'build',
cargo_options, cargo_options,
'&&', '&&',

View File

@ -2,7 +2,7 @@
# Maintainer: NekoCWD <nekodevelopper@gmail.com> # Maintainer: NekoCWD <nekodevelopper@gmail.com>
pkgname=fragments pkgname=fragments
pkgver=3.0.0 pkgver=3.0.0
pkgrel=0 pkgrel=1
pkgdesc="A BitTorrent Client" pkgdesc="A BitTorrent Client"
url="https://gitlab.gnome.org/World/Fragments" url="https://gitlab.gnome.org/World/Fragments"
# s390x fails to build # s390x fails to build
@ -12,6 +12,7 @@ license="GPL-3.0-or-later"
depends="transmission-daemon" depends="transmission-daemon"
makedepends=" makedepends="
cargo cargo
cargo-auditable
dbus-dev dbus-dev
desktop-file-utils desktop-file-utils
libadwaita-dev libadwaita-dev
@ -22,7 +23,8 @@ makedepends="
subpackages="$pkgname-lang" subpackages="$pkgname-lang"
source=" source="
https://gitlab.gnome.org/World/Fragments/-/archive/$pkgver/Fragments-$pkgver.tar.gz https://gitlab.gnome.org/World/Fragments/-/archive/$pkgver/Fragments-$pkgver.tar.gz
no-cargo-home.patch 0001-Use-cargo-auditable-build-instead-of-cargo-build.patch
0002-Remove-cargo-home.patch
" "
options="net" # needed for downloading dependencies options="net" # needed for downloading dependencies
builddir="$srcdir/Fragments-$pkgver" # Name starts with capital letter builddir="$srcdir/Fragments-$pkgver" # Name starts with capital letter
@ -51,5 +53,6 @@ package() {
sha512sums=" sha512sums="
bb0f30249bcba9c8bec2245443faf91acccca47af755383e339d9e22b2a4e8ea4173b3596c7c202226724dfefb806ec125e5b74903041aa599507bdaac5e0060 Fragments-3.0.0.tar.gz bb0f30249bcba9c8bec2245443faf91acccca47af755383e339d9e22b2a4e8ea4173b3596c7c202226724dfefb806ec125e5b74903041aa599507bdaac5e0060 Fragments-3.0.0.tar.gz
2c4b7433f27b18bbb428bdc2053cda53f10e958a2045499ab7af6102df9610822cf36a82636cd5b9501ba4e204aeddc18fcdb79aff773657a9a5a3c1aeba8e95 no-cargo-home.patch 56d76e2d50a20472e26aed22db48b9bcf5ea001e237976dd9b39900e409591a085fae8205162ed0f1cc63f9c37b59bf7af10a156755a0c067d42fcaab8e3c589 0001-Use-cargo-auditable-build-instead-of-cargo-build.patch
c79144a2139129a8b67838d308c7fb552fe56baa3c63ee0fcdaa95dd9bdeca76089a66e7c8b584848b3bb6b2dc1394ea7123ab8e2412bd3f389819ae6fdd9924 0002-Remove-cargo-home.patch
" "