void-packages/srcpkgs/sequoia-sq/template

31 lines
988 B
Bash

# Template file for 'sequoia-sq'
pkgname=sequoia-sq
version=0.31.0
revision=2
build_style=cargo
build_helper=qemu
_deps="nettle-devel openssl-devel sqlite-devel"
hostmakedepends="pkg-config llvm clang ${_deps}"
makedepends="${_deps}"
short_desc="Command-line frontend for Sequoia, a new OpenPGP implementation"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="GPL-2.0-or-later"
homepage="https://sequoia-pgp.org/projects/#sq"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sq/-/archive/v${version}/sequoia-sq-v${version}.tar.gz"
checksum=2bb62ce5fcc33a5340dae678a6628a9be992ff234141015256deb2cf45092b44
conflicts="squirrel"
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
post_build() {
SQ_MAN=man-sq vtargetrun ./target/${RUST_TARGET}/release/sq
}
post_install() {
for page in man-sq/*; do
vman ${page}
done
}