# Maintainer: Orhun Parmaksız # Maintainer: kpcyrd pkgname=arti pkgver=1.1.13 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=('d1c8ce40aa8582c121008c014d196c00a22da4887c5f72d222af1832a0ecd081') b2sums=('a830206f69d72363692996c899fa44af64d4d01bc9b58b3b763f635888cc9d758b6ab61947416e8cdbb4d24def5d507d310fd123b86e4ae0b19d055067b69a27') 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 } 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: