blob: c8e34f69e3dbc18186dea11ba0fd9728c4c87c9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: BrainDamage
# Contributor: xiretza
pkgname=synapse-compress-state
pkgver=0.1.4
pkgrel=1
pkgdesc="A tool to compress some state in a Synapse instance's database "
arch=('x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/matrix-org/rust-synapse-compress-state"
makedepends=('rust' 'python')
license=('Apache')
source=("${pkgname}-${pkgver}::https://github.com/matrix-org/rust-synapse-compress-state/archive/v${pkgver}.tar.gz")
sha256sums=('a746e3ec531a370d140a1c3b03d28db107df484d507345db664d0b77256bbebb')
prepare() {
cd "${srcdir}/rust-${pkgname}-${pkgver}"
cargo fetch --locked --target "${CARCH}-unknown-linux-gnu"
}
build() {
cd "${srcdir}/rust-${pkgname}-${pkgver}"
cargo build --release --locked
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --workspace --frozen --release --all-features
}
package() {
cd "${srcdir}/rust-${pkgname}-${pkgver}"
install -Dm0755 -t "${pkgdir}/usr/bin/" 'target/release/synapse_compress_state'
install -Dm0755 -t "${pkgdir}/usr/bin/" 'target/release/synapse_auto_compressor'
}
|