mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
# 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
|
||
"
|