# Maintainer: Orhun Parmaksız # Maintainer: kpcyrd pkgname=arti pkgver=1.4.2 pkgrel=11 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=('551bccd10186988d20a94f0a96eac10d7e36512608543170361b79d27e69eaa9') b2sums=('6349f18c9e48ecad17c52022c31a708d5963e4890bb1cc967a4821016dd229fb1f38f956c6faa7f9bffb7d9f394246926e06b13128e3f13f7f2f7762b2c3a4f1') 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,restricted-discovery } 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: