void-packages/srcpkgs/sequoia-sq/template

35 lines
1.2 KiB
Bash

# Template file for 'sequoia-sq'
pkgname=sequoia-sq
version=0.38.0
revision=1
build_style=cargo
build_helper=qemu
_deps="nettle-devel openssl-devel sqlite-devel"
hostmakedepends="pkg-config llvm clang ${_deps} capnproto"
makedepends="${_deps} capnproto-devel"
short_desc="Command-line frontend for Sequoia, a new OpenPGP implementation"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://sequoia-pgp.org/projects/#sq"
changelog="https://gitlab.com/sequoia-pgp/sequoia-sq/-/raw/main/NEWS"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sq/-/archive/v${version}/sequoia-sq-v${version}.tar.gz"
checksum=9fd32ad0de3388804e21205003821710d2faf99d5c85a50bd97da3e7e480921b
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
pre_build() {
export ASSET_OUT_DIR=assets
}
post_install() {
for page in assets/man-pages/*; do
vman ${page}
done
vcompletion assets/shell-completions/sq.bash bash
vcompletion assets/shell-completions/sq.fish fish
vcompletion assets/shell-completions/_sq zsh
}