sequoia-chameleon-gnupg: update to 0.11.0.

This commit is contained in:
classabbyamp 2024-08-28 13:05:41 -04:00
parent cf653206ef
commit 338bb4fc79
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 18 additions and 6 deletions

View File

@ -1,6 +1,6 @@
# Template file for 'sequoia-chameleon-gnupg'
pkgname=sequoia-chameleon-gnupg
version=0.10.1
version=0.11.0
revision=1
build_style=cargo
hostmakedepends="pkg-config llvm clang"
@ -12,13 +12,25 @@ license="GPL-3.0-or-later"
homepage="https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg"
changelog="https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/raw/main/NEWS"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-chameleon-gnupg/-/archive/v${version}/sequoia-chameleon-gnupg-v${version}.tar.gz"
checksum=dc0a5c29db249ba6500c2aa318d0c4e1cec1e35142255349371a5337a0205cf4
checksum=13a1c01d9a698b8daacfd74d89102f122d7fc81c51d51cf100ba0e77fbb825ab
pre_build() {
export ASSET_OUT_DIR=assets
}
post_install() {
# allow users to add /usr/libexec/sequoia to $PATH to get gpg = gpg-sq
vmkdir /usr/libexec/sequoia
mv "${DESTDIR}"/usr/bin/gpg-sq "${DESTDIR}"/usr/libexec/sequoia/gpg
ln -s ../libexec/sequoia/gpg "${DESTDIR}"/usr/bin/gpg-sq
mv "${DESTDIR}"/usr/bin/gpgv-sq "${DESTDIR}"/usr/libexec/sequoia/gpgv
ln -s ../libexec/sequoia/gpgv "${DESTDIR}"/usr/bin/gpgv-sq
for bin in gpg{,v}-sq; do
mv "${DESTDIR}/usr/bin/$bin" "${DESTDIR}/usr/libexec/sequoia/${bin%-sq}"
ln -s "../libexec/sequoia/${bin%-sq}" "${DESTDIR}/usr/bin/$bin"
vcompletion "assets/shell-completions/$bin.bash" bash "$bin"
vcompletion "assets/shell-completions/$bin.fish" fish "$bin"
vcompletion "assets/shell-completions/_$bin" zsh "$bin"
done
for page in assets/man-pages/*; do
vman "$page"
done
}