2022-09-05 14:10:26 -04:00
|
|
|
|
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
|
|
|
|
|
|
|
|
|
|
pkgname=arti
|
2023-04-05 12:54:09 -04:00
|
|
|
|
pkgver=1.1.3
|
2022-12-01 10:55:43 -05:00
|
|
|
|
pkgrel=1
|
2022-09-05 14:10:26 -04:00
|
|
|
|
pkgdesc="An implementation of Tor in Rust"
|
|
|
|
|
arch=('x86_64')
|
|
|
|
|
url="https://gitlab.torproject.org/tpo/core/arti"
|
|
|
|
|
license=('MIT' 'Apache')
|
|
|
|
|
depends=('sqlite' 'openssl' 'xz')
|
|
|
|
|
makedepends=('cargo')
|
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgname-v$pkgver/$pkgname-$pkgname-v$pkgver.tar.gz")
|
2023-04-05 12:54:09 -04:00
|
|
|
|
sha256sums=('bbadab3273d97b0a36c02763a4fcdcf94181b2475b98e1f3a8742093e342ebad')
|
2022-09-05 14:10:26 -04:00
|
|
|
|
options=('!lto')
|
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
|
mv "$pkgname-$pkgname-v$pkgver" "$pkgname-$pkgver"
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
cargo build --release --frozen
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
cargo test --frozen
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
|
|
|
|
|
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
|
|
|
|
|
install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|