void-packages/srcpkgs/sequoia-sop/template

36 lines
1.2 KiB
Bash

# Template file for 'sequoia-sop'
pkgname=sequoia-sop
version=0.36.0
revision=1
build_style=cargo
configure_args="--bin sqop --features cli,sequoia-openpgp/compression"
hostmakedepends="pkg-config llvm clang"
makedepends="nettle-devel bzip2-devel sqlite-devel"
short_desc="Implementation of the Stateless OpenPGP CLI using Sequoia"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/sequoia-pgp/sequoia-sop/"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sop/-/archive/v${version}/sequoia-sop-v${version}.tar.gz"
checksum=3f56d57fb19941f3a9202693f2ed285d47572f593aca9aca43ac83b1791aa891
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"
fi
case "$XBPS_TARGET_MACHINE" in
armv*l) nocross="Requires C libs included in build.rs, which is currently broken in xbps-src. These failures only manifest on a hf archs right now";;
esac
pre_build() {
export ASSET_OUT_DIR=assets
}
post_install() {
for page in assets/man-pages/*; do
vman ${page}
done
vcompletion assets/shell-completions/_sqop zsh
vcompletion assets/shell-completions/sqop.bash bash
vcompletion assets/shell-completions/sqop.fish fish
}