aports/community/gpg-tui/APKBUILD
psykose 7853d213cc */*: remove CARGO_REGISTRIES_CRATES_IO_PROTOCOL
we now set this in abuild instead.
2023-05-06 04:28:28 +02:00

50 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
pkgname=gpg-tui
pkgver=0.9.5
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"
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"
case "$CARCH" in
riscv64)
options="$options textrels"
;;
esac
build() {
cargo 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/completions/$pkgname.fish
install -Dm644 completions/_$pkgname "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}
sha512sums="
d1f38886175bec44cfaecfdb8960024ce15ff728ba95012cf255bf03f22e6b07aafa2d632b6cb7ae4c95c3213981a13a30cdf22235471e83c33d9f3d8aab5206 gpg-tui-0.9.5.tar.gz
"