From 5fc0c44b7599e781ce012567c1c0eb2dc3a22f33 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 22 Feb 2024 16:01:09 -0500 Subject: [PATCH 1/2] common/build-style/cargo.sh: use make_build_args in do_build --- common/build-style/cargo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh index 751911d8dbee8d..459f827737eba7 100644 --- a/common/build-style/cargo.sh +++ b/common/build-style/cargo.sh @@ -5,7 +5,8 @@ do_build() { : ${make_cmd:=cargo auditable} - ${make_cmd} build --release --locked --target ${RUST_TARGET} ${configure_args} + ${make_cmd} build --release --locked --target ${RUST_TARGET} \ + ${configure_args} ${make_build_args} } do_check() { From c974172f593ca1f1805a866336400a7d8fa54625 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 22 Mar 2023 16:28:50 -0400 Subject: [PATCH 2/2] New package: synapse-compress-state-0.1.3 --- srcpkgs/synapse-compress-state/template | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 srcpkgs/synapse-compress-state/template diff --git a/srcpkgs/synapse-compress-state/template b/srcpkgs/synapse-compress-state/template new file mode 100644 index 00000000000000..643f6a7d53a734 --- /dev/null +++ b/srcpkgs/synapse-compress-state/template @@ -0,0 +1,22 @@ +# Template file for 'synapse-compress-state' +pkgname=synapse-compress-state +version=0.1.3 +revision=1 +build_style=cargo +make_build_args="--workspace" +make_check_args="--workspace --exclude compressor_integration_tests" +hostmakedepends="pkg-config python3" +makedepends="openssl-devel python3" +short_desc="Tools to compress state in a synapse instance's database" +maintainer="Joel Beckmeyer " +license="Apache-2.0" +homepage="https://github.com/matrix-org/rust-synapse-compress-state" +distfiles="https://github.com/matrix-org/rust-synapse-compress-state/archive/refs/tags/v${version}.tar.gz" +checksum=6c21786767f54fa09c1bb9bb8335b56829b2f3b7aca112f5ce099dff77bf10cd + +post_install() { + cargo auditable install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ + --offline --locked --path synapse_auto_compressor + rm -f "${DESTDIR}"/usr/.crates.toml + rm -f "${DESTDIR}"/usr/.crates2.json +}