# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=rathole pkgver=0.4.8 pkgrel=0 pkgdesc="High-performance reverse proxy for NAT traversal" url="https://github.com/rapiz1/rathole" license="Apache-2.0" arch="all !s390x !riscv64" # blocked by rust/cargo makedepends="cargo openssl-dev cargo-auditable" source="https://github.com/rapiz1/rathole/archive/v$pkgver/rathole-$pkgver.tar.gz" options="!check" # loop forever on failure prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release } check() { cargo test --frozen } package() { install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/ } sha512sums=" 70482509a917006d65d3abf5588670b8444f27f072bae0bf62258ddb5fb9d4afaedc66b340def7967ebf7332e6b1d1773b9f3885cb2de039d1349ab599315568 rathole-0.4.8.tar.gz "