From 2e68ef1a015cfa295dfb52a587f961abb4c28d00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ey=C3=9Fer?= Date: Tue, 15 Mar 2022 20:03:17 +0100 Subject: [PATCH] New package: arti-1.0.0 --- srcpkgs/arti/template | 31 +++++++++++++++++++++++++++++++ srcpkgs/arti/update | 1 + 2 files changed, 32 insertions(+) create mode 100644 srcpkgs/arti/template create mode 100644 srcpkgs/arti/update diff --git a/srcpkgs/arti/template b/srcpkgs/arti/template new file mode 100644 index 000000000000..be5d565ec77f --- /dev/null +++ b/srcpkgs/arti/template @@ -0,0 +1,31 @@ +# Template file for 'arti' +pkgname=arti +version=1.0.0 +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 " +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=4aa5f2f8ce98b913a843542f26895b2f4819829fa3dec9082fa1e8da5e274267 + +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 +} diff --git a/srcpkgs/arti/update b/srcpkgs/arti/update new file mode 100644 index 000000000000..4d7a8d07c702 --- /dev/null +++ b/srcpkgs/arti/update @@ -0,0 +1 @@ +pkgname=arti-arti