From 9149a6c2ed1f8e5f816c8f76cc262328d86de085 Mon Sep 17 00:00:00 2001 From: Numair Dubas Date: Mon, 26 Dec 2022 19:06:49 -0500 Subject: [PATCH] New package: flavours-0.6.1 flavours: remove $wrksrc and edit $distfiles to use $homepage --- srcpkgs/flavours/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/flavours/template diff --git a/srcpkgs/flavours/template b/srcpkgs/flavours/template new file mode 100644 index 000000000000..7e5dfd626932 --- /dev/null +++ b/srcpkgs/flavours/template @@ -0,0 +1,29 @@ +# Template file for 'flavours' +pkgname=flavours +version=0.6.1 +revision=1 +build_style=cargo +build_helper=qemu +short_desc="Simple and easy cli to build and use base16 schemes" +maintainer="Numair Dubas " +license="MIT" +homepage="https://github.com/Misterio77/flavours" +distfiles=${homepage}/archive/refs/tags/v${version}.tar.gz +checksum=48c7659031d399ff125a07b71419935946e0da8d3ef1817a9f89dda32c2dcac1 + +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 +}