From 5ad7e191f4d627f3973df0e8c170cf49fc6b9a80 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 22 Mar 2023 16:28:50 -0400 Subject: [PATCH] New package: synapse-compress-state-0.1.3 --- srcpkgs/synapse-compress-state/template | 23 +++++++++++++++++++++++ 1 file changed, 23 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 0000000000000..6c5b912a3ca6b --- /dev/null +++ b/srcpkgs/synapse-compress-state/template @@ -0,0 +1,23 @@ +# Template file for 'synapse-compress-state' +pkgname=synapse-compress-state +version=0.1.3 +revision=1 +build_style=cargo +configure_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 + +do_install() { + cargo auditable install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ + --offline --locked --path . + 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 +}