2022-03-15 20:03:17 +01:00
|
|
|
# Template file for 'arti'
|
|
|
|
pkgname=arti
|
2022-10-04 10:15:13 +02:00
|
|
|
version=1.0.1
|
2022-03-15 20:03:17 +01:00
|
|
|
revision=1
|
|
|
|
wrksrc="arti-arti-v${version}"
|
|
|
|
build_style=cargo
|
|
|
|
make_check_args="-- --skip internal::test::internal_macro_test" # fails with --release builds
|
|
|
|
make_install_args="--path crates/arti"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="openssl-devel sqlite-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"
|
2022-10-04 10:15:13 +02:00
|
|
|
checksum=9a326c820144f26999abe987273910ccfc5e0bb6843d5c2c59905eb46e38a980
|
2022-03-15 20:03:17 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|