# Contributor: Michał Polański # Maintainer: Orhun Parmaksız pkgname=gpg-tui pkgver=0.9.6 pkgrel=1 pkgdesc="Terminal user interface for GnuPG" url="https://github.com/orhun/gpg-tui" license="MIT" arch="all !s390x" # FTBFS makedepends="cargo gpgme-dev libxcb-dev libxkbcommon-dev libgpg-error-dev cargo-auditable" subpackages=" $pkgname-doc $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " source="https://github.com/orhun/gpg-tui/archive/v$pkgver/gpg-tui-$pkgver.tar.gz" build() { cargo auditable build --release --locked mkdir completions OUT_DIR=completions cargo run --release --bin gpg-tui-completions } check() { cargo test --release --locked } package() { install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/ install -Dm644 man/$pkgname.1 -t "$pkgdir"/usr/share/man/man1/ install -Dm644 completions/$pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname install -Dm644 completions/$pkgname.fish "$pkgdir"/usr/share/fish/vendor_completions.d/$pkgname.fish install -Dm644 completions/_$pkgname "$pkgdir"/usr/share/zsh/site-functions/_$pkgname } sha512sums=" c4068dd27e861b4a32db40872415988ed634a7e707981e8fc065feea2cef959d5c5f0fefae4f0c7a9d1da45c4ec6589bfae57714c9140a1df7fbac89e6046ae5 gpg-tui-0.9.6.tar.gz "