Commit 473f4691 authored by Michał Polański's avatar Michał Polański
Browse files

testing/gpg-tui: new aport

Terminal user interface for GnuPG
https://github.com/orhun/gpg-tui
parent c86b43a7
Pipeline #84216 passed with stages
in 1 minute and 14 seconds
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=gpg-tui
pkgver=0.4.1
pkgrel=0
pkgdesc="Terminal user interface for GnuPG"
url="https://github.com/orhun/gpg-tui"
license="MIT"
arch="all !s390x !mips64" # limited by rust/cargo
makedepends="cargo gpgme-dev libxcb-dev libgpg-error-dev"
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 build --release --locked
mkdir completions
OUT_DIR=completions cargo run --release --bin completions
}
check() {
cargo test --release --locked
}
package() {
install -Dm755 target/release/$pkgname "$pkgdir"/usr/bin/$pkgname
install -Dm644 man/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
install -Dm644 completions/$pkgname.bash "$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -Dm644 completions/$pkgname.fish "$pkgdir"/usr/share/fish/completions/$pkgname.fish
install -Dm644 completions/_$pkgname "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}
sha512sums="
8cf01714123c8af2929207347e5db3c298b019ab059087371ffd92b70685d6bc363b5962646cef922153c02675a3a408ae18b659d177b8a08d9b0a9c730d4663 gpg-tui-0.4.1.tar.gz
"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment