37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
# Template file for 'sequoia-chameleon-gnupg'
|
|
pkgname=sequoia-chameleon-gnupg
|
|
version=0.11.2
|
|
revision=1
|
|
build_style=cargo
|
|
hostmakedepends="pkg-config llvm clang"
|
|
makedepends="nettle-devel openssl-devel sqlite-devel bzip2-devel"
|
|
checkdepends="gnupg faketime sequoia-sq"
|
|
short_desc="Re-implementation of gpg and gpgv from Sequoia OpenPGP"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
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=e254146d42facc704bd68c33fec174f15edf6921dd1bc578b37c93ae61c99781
|
|
|
|
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
|
|
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
|
|
}
|