void-packages/srcpkgs/sequoia-sqv/template

32 lines
1021 B
Bash

# Template file for 'sequoia-sqv'
pkgname=sequoia-sqv
version=1.2.1
revision=1
build_style=cargo
_deps="nettle-devel"
hostmakedepends="pkg-config llvm clang ${_deps}"
makedepends="${_deps}"
short_desc="Simple PGP signature verification program"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://gitlab.com/sequoia-pgp/sequoia-sqv"
distfiles="https://gitlab.com/sequoia-pgp/sequoia-sqv/-/archive/v${version}/sequoia-sqv-v${version}.tar.gz"
checksum=eca6831546ba848a407725361a6280ed0f70693f6cce007b2f7a57cee7ede5ab
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/sqv.bash bash
vcompletion assets/shell-completions/sqv.fish fish
vcompletion assets/shell-completions/_sqv zsh
}