void-packages/srcpkgs/openpgp-card-tools/template

31 lines
1019 B
Bash

# Template file for 'openpgp-card-tools'
pkgname=openpgp-card-tools
version=0.10.0
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config llvm clang"
makedepends="nettle-devel pcsclite-devel"
depends="pcsclite pcsc-ccid"
short_desc="Tools for inspecting, configuring and using OpenPGP cards"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT, Apache-2.0"
homepage="https://codeberg.org/openpgp-card/openpgp-card-tools"
distfiles="https://codeberg.org/openpgp-card/openpgp-card-tools/archive/v${version}.tar.gz"
checksum=2bea380d0038208d5b6bd93cb7580e6522d4f43bc1e429cc977cb678adb061fb
post_install() {
vlicense "LICENSES/MIT.txt"
vdoc "README.md"
OCT_MANPAGE_OUTPUT_DIR=${PWD}/man vtargetrun target/${RUST_TARGET}/release/oct
for page in man/*; do
vman $page
done
OCT_COMPLETION_OUTPUT_DIR=${PWD}/completions vtargetrun target/${RUST_TARGET}/release/oct
vcompletion completions/_oct zsh oct
vcompletion completions/oct.fish fish oct
vcompletion completions/oct.bash bash oct
}