# Contributor: Michał Polański # Maintainer: Michał Polański pkgname=rustic # NOTE: do not move out of the testing repository until upstream says it's no longer beta-quality software pkgver=0.6.0 pkgrel=0 pkgdesc="Fast, encrypted, deduplicated backups" url="https://github.com/rustic-rs/rustic" license="MIT OR Apache-2.0" arch="all !ppc64le !riscv64" # fails to build ring crate arch="$arch !s390x" # fails to build nix crate makedepends="cargo cargo-auditable" subpackages=" $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/rustic-rs/rustic/archive/v$pkgver/rustic-$pkgver.tar.gz cargo-lock.patch " options="net" # fetch dependencies prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo auditable build --frozen --release target/release/rustic completions bash > $pkgname.bash target/release/rustic completions fish > $pkgname.fish target/release/rustic completions zsh > $pkgname.zsh } check() { cargo test --frozen } package() { install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/ install -Dm644 $pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -Dm644 $pkgname.fish "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish install -Dm644 $pkgname.zsh "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" a83585cc6e37b51a7c57197d68c5d2779f7f2988b9d069871a20018e5264f8f735bac1050c1f67386b34ba7d6b4ab4f79e531a94ea31e557b46ea3542a7e1b98 rustic-0.6.0.tar.gz 0866d2689a7acc5d31b7c369de098aea1078afa873410ee02a5f8c101e63b84b7bb771ec546c143b1f12761d21eb3c8ae78ea0a8fa2cde035fe63e30c09bd1bf cargo-lock.patch "