36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'conduit'
|
|
pkgname=conduit
|
|
version=0.6.0
|
|
revision=1
|
|
# needs ring/rustls
|
|
archs="x86_64* i686* aarch64* armv[67]*"
|
|
build_style=cargo
|
|
hostmakedepends="clang pkg-config"
|
|
makedepends="libzstd-devel"
|
|
short_desc="Simple, fast and reliable chat server powered by Matrix"
|
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
|
license="Apache-2.0"
|
|
homepage="https://conduit.rs/"
|
|
distfiles="https://gitlab.com/famedly/conduit/-/archive/v${version}/conduit-v${version}.tar.gz"
|
|
checksum=b722fb4f12ada5f965472b634dfa6a837aae03ff6712c210cdd292302bbb1259
|
|
|
|
system_accounts="_conduit"
|
|
_conduit_homedir="/var/lib/conduit"
|
|
|
|
make_dirs="/var/lib/conduit 0700 _conduit _conduit
|
|
/etc/conduit 755 _conduit _conduit"
|
|
|
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
|
XBPS_CROSS_RUSTFLAGS+=" -latomic"
|
|
fi
|
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
|
# doctests fail on x86_64 -> i686 chroot, so run everything *but* them
|
|
make_check_args+=" --lib --bins --tests --benches --examples"
|
|
fi
|
|
|
|
post_install() {
|
|
vsconf conduit-example.toml conduit.toml
|
|
vsv conduit
|
|
}
|