2022-09-05 14:10:26 -04:00
|
|
|
|
# Maintainer: Orhun Parmaksız <orhun@archlinux.org>
|
2023-11-30 08:53:51 -05:00
|
|
|
|
# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
|
2022-09-05 14:10:26 -04:00
|
|
|
|
|
|
|
|
|
pkgname=arti
|
2024-10-31 14:47:39 -04:00
|
|
|
|
pkgver=1.3.0
|
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"
|
2024-02-06 12:38:29 -05:00
|
|
|
|
license=('MIT' 'Apache-2.0')
|
2023-11-30 08:53:51 -05:00
|
|
|
|
depends=(
|
2024-02-06 12:38:29 -05:00
|
|
|
|
'gcc-libs'
|
|
|
|
|
'glibc'
|
2023-11-30 08:53:51 -05:00
|
|
|
|
'liblzma.so'
|
|
|
|
|
'libsqlite3.so'
|
|
|
|
|
'libssl.so'
|
|
|
|
|
)
|
2022-09-05 14:10:26 -04:00
|
|
|
|
makedepends=('cargo')
|
2023-11-30 08:53:51 -05:00
|
|
|
|
backup=('etc/arti.d/arti.toml')
|
2022-09-05 14:10:26 -04:00
|
|
|
|
options=('!lto')
|
2023-11-30 08:53:51 -05:00
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgname-v$pkgver/$pkgname-$pkgname-v$pkgver.tar.gz")
|
2024-10-31 14:47:39 -04:00
|
|
|
|
sha256sums=('fce2a334e21d7c22930adcdd6c3460a2c1ef4d7515baf6d1569e780bc714070b')
|
|
|
|
|
b2sums=('4cfad1176d01916c2519bd6ada6e89fa0ab5ab33147a39f9dc3766d25e54f58f26ce3d573dbd7dd65a949f09493417ea7c0a9cb65176427770e46daf495fe436')
|
2022-09-05 14:10:26 -04:00
|
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
|
mv "$pkgname-$pkgname-v$pkgver" "$pkgname-$pkgver"
|
|
|
|
|
cd "$pkgname-$pkgver"
|
2024-02-22 04:12:12 -05:00
|
|
|
|
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
2022-09-05 14:10:26 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
2024-03-04 13:39:35 -05:00
|
|
|
|
cargo build --release --frozen --features full
|
2022-09-05 14:10:26 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
check() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
cargo test --frozen
|
2023-11-30 08:53:51 -05:00
|
|
|
|
"target/release/$pkgname" --help
|
2022-09-05 14:10:26 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
package() {
|
|
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
|
2023-11-30 08:53:51 -05: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 14:10:26 -04:00
|
|
|
|
install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|