36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'conduit'
|
|
pkgname=conduit
|
|
version=0.5.0
|
|
revision=1
|
|
# needs ring/rustls
|
|
archs="x86_64* i686* aarch64* armv[67]*"
|
|
build_style=cargo
|
|
hostmakedepends="clang"
|
|
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=447ace45d5642ee942f81e130621cea397c12a9df3515b82cd20293888d0ee8b
|
|
|
|
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
|
|
makedepends+=" libatomic-devel"
|
|
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
|
|
}
|