void-packages/srcpkgs/flavours/template

31 lines
953 B
Bash

# Template file for 'flavours'
pkgname=flavours
version=0.7.1
revision=1
build_style=cargo
build_helper=qemu
short_desc="Simple and easy cli to build and use base16 schemes"
maintainer="Numair Dubas <Numair2644@protonmail.com>"
license="MIT"
homepage="https://github.com/Misterio77/flavours"
changelog="https://raw.githubusercontent.com/Misterio77/flavours/master/CHANGELOG.md"
distfiles=https://github.com/Misterio77/flavours/archive/refs/tags/v${version}.tar.gz
checksum=207002728cc270d92f4cd437384925e767c611d30520ec8a29816dfe600d7f61
post_build() {
FLAVOURS="target/${RUST_TARGET}/release/flavours"
vtargetrun ${FLAVOURS} --completions bash > flavours.bash
vtargetrun ${FLAVOURS} --completions zsh > flavours.zsh
vtargetrun ${FLAVOURS} --completions fish > flavours.fish
}
post_install() {
vcompletion flavours.bash bash
vcompletion flavours.zsh zsh
vcompletion flavours.fish fish
vlicense LICENSE
vdoc README.md
vsconf example.toml
}