2022-09-05 18:10:26 +00:00
|
|
|
|
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
|
2023-11-30 14:53:51 +01:00
|
|
|
|
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
|
2022-09-05 18:10:26 +00:00
|
|
|
|
|
|
|
|
|
pkgname=arti
|
2024-10-01 15:27:44 +02:00
|
|
|
|
pkgver=1.2.8
|
2022-12-01 15:55:43 +00:00
|
|
|
|
pkgrel=1
|
2022-09-05 18:10:26 +00:00
|
|
|
|
pkgdesc="An implementation of Tor in Rust"
|
|
|
|
|
arch=('x86_64')
|
|
|
|
|
url="https://gitlab.torproject.org/tpo/core/arti"
|
2024-02-06 18:38:29 +01:00
|
|
|
|
license=('MIT' 'Apache-2.0')
|
2023-11-30 14:53:51 +01:00
|
|
|
|
depends=(
|
2024-02-06 18:38:29 +01:00
|
|
|
|
'gcc-libs'
|
|
|
|
|
'glibc'
|
2023-11-30 14:53:51 +01:00
|
|
|
|
'liblzma.so'
|
|
|
|
|
'libsqlite3.so'
|
|
|
|
|
'libssl.so'
|
|
|
|
|
)
|
2022-09-05 18:10:26 +00:00
|
|
|
|
makedepends=('cargo')
|
2023-11-30 14:53:51 +01:00
|
|
|
|
backup=('etc/arti.d/arti.toml')
|
2022-09-05 18:10:26 +00:00
|
|
|
|
options=('!lto')
|
2023-11-30 14:53:51 +01:00
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgname-v$pkgver/$pkgname-$pkgname-v$pkgver.tar.gz")
|
2024-10-01 15:27:44 +02:00
|
|
|
|
sha256sums=('85dd949c4ac29d9b13f599c65de17dcd2b60ba6963dab27be7b5530a0bfe7675')
|
|
|
|
|
b2sums=('b297d8bb38879a6382d92494ceea4c9afc74598594e58f87d8a263f8cb4707b2051f3997625338dc4c7d8fbb65088218ddab5ec531f5b2f375964f802a7db6d6')
|
2022-09-05 18:10:26 +00:00
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
|
mv "$pkgname-$pkgname-v$pkgver" "$pkgname-$pkgver"
|
|
|
|
|
cd "$pkgname-$pkgver"
|
2024-02-22 09:12:12 +00:00
|
|
|
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
2022-09-05 18:10:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
2024-03-04 19:39:35 +01:00
|
|
|
|
cargo build --release --frozen --features full
|
2022-09-05 18:10:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
cargo test --frozen
|
2023-11-30 14:53:51 +01:00
|
|
|
|
"target/release/$pkgname" --help
|
2022-09-05 18:10:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
|
2023-11-30 14:53:51 +01:00
|
|
|
|
|
|
|
|
|
# config
|
|
|
|
|
install -Dm 640 crates/arti/src/arti-example-config.toml "$pkgdir/etc/arti.d/arti.toml"
|
|
|
|
|
|
|
|
|
|
# docs
|
|
|
|
|
install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" \
|
|
|
|
|
README.md \
|
|
|
|
|
crates/arti/src/arti-example-config.toml
|
|
|
|
|
|
2022-09-05 18:10:26 +00:00
|
|
|
|
install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|