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.0
|
|
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=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
|
|
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
|
|
}
|