31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Template file for 'arti'
|
|
pkgname=arti
|
|
version=1.1.9
|
|
revision=1
|
|
archs="x86_64* i686* aarch64* arm*" # ring
|
|
build_style=cargo
|
|
make_install_args="--path crates/arti"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="openssl-devel sqlite-devel libzstd-devel"
|
|
short_desc="Tor implementation in Rust"
|
|
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
|
|
license="Apache-2.0, MIT"
|
|
homepage="https://gitlab.torproject.org/tpo/core/arti"
|
|
changelog="https://gitlab.torproject.org/tpo/core/arti/-/raw/main/CHANGELOG.md"
|
|
distfiles="https://gitlab.torproject.org/tpo/core/arti/-/archive/arti-v${version}/arti-arti-v${version}.tar.gz"
|
|
checksum=5b8edcd3125db1e3d431e21b86702e511c7aeeb51b71189d19b1153d6fc5b3e5
|
|
|
|
if [ "$XBPS_CHECK_PKGS" ]; then
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
# Disable LTO for i686 because otherwise tests fail with:
|
|
# ---- src/address.rs - address::TorAddr (line 79) stdout ----
|
|
# error: ran out of registers during register allocation
|
|
# LLVM ERROR: Cannot emit physreg copy instruction
|
|
i686*) export CARGO_PROFILE_RELEASE_LTO=false ;;
|
|
esac
|
|
fi
|
|
|
|
post_install() {
|
|
vlicense LICENSE-MIT
|
|
}
|