# Template file for 'conduit' pkgname=conduit version=0.4.0 revision=1 # needs ring/rustls archs="x86_64* i686* aarch64* armv[67]*" wrksrc="conduit-v${version}" build_style=cargo hostmakedepends="clang" short_desc="Simple, fast and reliable chat server powered by Matrix" maintainer="Joel Beckmeyer " license="Apache-2.0" homepage="https://conduit.rs/" distfiles="https://gitlab.com/famedly/conduit/-/archive/v${version}/conduit-v${version}.tar.gz" checksum=0d62cdd3f97e181ed98cff3a1e6c15d61358c01eeac4b5af686e5f650e77cc3f 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 }