# Maintainer: Orhun Parmaksız # Maintainer: kpcyrd pkgname=arti pkgver=1.1.10 pkgrel=1 pkgdesc="An implementation of Tor in Rust" arch=('x86_64') url="https://gitlab.torproject.org/tpo/core/arti" license=('MIT' 'Apache') depends=( '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=('bb7f18385022b616fb0fb04c61b890441524eaa884def1eef3c581b711814842') b2sums=('ba11c13d0d214b3f3d4e8c3e4767a947383377f43fe2ce5238b047f89d1d460003c6e9df19145952f28b6dc20e7c84ad849dd8dc08af8f196f75292e4c6299b2') 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 "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: