mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-02 23:31:34 +01:00
Also, updated new config options and comments from `conduit-example.toml`. The check for updates option has been disabled as that involves phoning home. However, the display name lightning bolt option is left enabled, as according to `src/service/admin/mod.rs`, the Conduit lounge Matrix room is only open to people running Conduit, and the lightning bolt is *probably* how they filter people out.
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=conduit
|
|
pkgver=0.6.0
|
|
pkgrel=0
|
|
pkgdesc="Simple, fast and reliable chat server powered by Matrix"
|
|
url="https://conduit.rs/"
|
|
# ring-rs
|
|
arch="all !riscv64 !ppc64le !s390x"
|
|
license="Apache-2.0"
|
|
makedepends="cargo sqlite-dev cargo-auditable"
|
|
install="$pkgname.pre-install"
|
|
subpackages="$pkgname-openrc"
|
|
source="https://gitlab.com/famedly/conduit/-/archive/v$pkgver/conduit-v$pkgver.tar.gz
|
|
system-sqlite.patch
|
|
|
|
conduit.toml
|
|
conduit.initd
|
|
conduit.confd
|
|
"
|
|
builddir="$srcdir/conduit-v$pkgver"
|
|
options="net"
|
|
|
|
_features="--no-default-features --features=conduit_bin,backend_sqlite"
|
|
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --release --frozen $_features
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen $_features
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/conduit -t "$pkgdir"/usr/bin
|
|
install -Dm755 "$srcdir"/conduit.initd "$pkgdir"/etc/init.d/conduit
|
|
install -Dm644 "$srcdir"/conduit.confd "$pkgdir"/etc/conf.d/conduit
|
|
install -Dm644 "$srcdir"/conduit.toml "$pkgdir"/etc/conduit/conduit.toml
|
|
}
|
|
|
|
sha512sums="
|
|
a8267f59ef829a7d3e6f528c9b4487993c7d3c930d6849254c3acf6547b041bceb5435572d937c7b98456f0379673c468528ff49ba5a6bef7590679ab9077c32 conduit-v0.6.0.tar.gz
|
|
7bc072043ebedd74ff8805c8b478ecc35f42e81a53d6b2c13d9d8568ad27b64b992d4a9bab9a6ced253971bbd4922f4da814cf2decdf253a2f5a078ced55f834 system-sqlite.patch
|
|
b8485aa253d21f30b4ed7994f7e78aae8cd6420e0ced20eb618b3c27389a9d5cdb1906e7748f66cc0b73dc21315625f87a06951343c8d4eb542bf7148c256418 conduit.toml
|
|
be411bc3447d684c546249e6fe6573d1c7798c7dfc148564b00b60026592eafa66dec4289a2d336656291ba1b915dd8b1e4df632de44a0ec0b3ad7d971ab062f conduit.initd
|
|
8769e2feb4e0db08d7c6861a9d9110db8b846a496086f697080fda7270c97b506cbb10326cf708cdeab5eda68ec93a5ad86db4db5b9b0ebc189e6a5cefacf3a1 conduit.confd
|
|
"
|