# Maintainer: Orhun Parmaksız # Maintainer: kpcyrd pkgname=arti pkgver=1.3.0 pkgrel=1 pkgdesc="An implementation of Tor in Rust" arch=('x86_64') url="https://gitlab.torproject.org/tpo/core/arti" license=('MIT' 'Apache-2.0') depends=( 'gcc-libs' 'glibc' 'liblzma.so' 'libsqlite3.so' 'libssl.so' ) makedepends=('cargo') backup=('etc/arti.d/arti.toml') options=('!lto') source=("$pkgname-$pkgver.tar.gz::$url/-/archive/$pkgname-v$pkgver/$pkgname-$pkgname-v$pkgver.tar.gz") sha256sums=('fce2a334e21d7c22930adcdd6c3460a2c1ef4d7515baf6d1569e780bc714070b') b2sums=('4cfad1176d01916c2519bd6ada6e89fa0ab5ab33147a39f9dc3766d25e54f58f26ce3d573dbd7dd65a949f09493417ea7c0a9cb65176427770e46daf495fe436') prepare() { mv "$pkgname-$pkgname-v$pkgver" "$pkgname-$pkgver" cd "$pkgname-$pkgver" cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')" } build() { cd "$pkgname-$pkgver" cargo build --release --frozen --features full } check() { cd "$pkgname-$pkgver" cargo test --frozen "target/release/$pkgname" --help } package() { cd "$pkgname-$pkgver" install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" # 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 install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname" } # vim:set ts=2 sw=2 et: