From 420e70c13c4703f8336655f0ed13e4c3eba88b0b Mon Sep 17 00:00:00 2001 From: Numair Dubas Date: Mon, 26 Dec 2022 19:06:49 -0500 Subject: [PATCH 1/2] New package: flavours-0.6.1 --- srcpkgs/flavours/template | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/flavours/template diff --git a/srcpkgs/flavours/template b/srcpkgs/flavours/template new file mode 100644 index 000000000000..b92c7a9dc49d --- /dev/null +++ b/srcpkgs/flavours/template @@ -0,0 +1,30 @@ +# Template file for 'flavours' +pkgname=flavours +version=0.6.1 +revision=1 +wrksrc="${pkgname}-${version}" +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=https://github.com/Misterio77/flavours/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 +} From 1aaa6853bb8363cb5d7917ee86074683f8882c7b Mon Sep 17 00:00:00 2001 From: Numair Dubas Date: Tue, 27 Dec 2022 11:46:16 -0500 Subject: [PATCH 2/2] flavours: remove $wrksrc and edit $distfiles to use $homepage --- srcpkgs/flavours/template | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srcpkgs/flavours/template b/srcpkgs/flavours/template index b92c7a9dc49d..7e5dfd626932 100644 --- a/srcpkgs/flavours/template +++ b/srcpkgs/flavours/template @@ -2,14 +2,13 @@ pkgname=flavours version=0.6.1 revision=1 -wrksrc="${pkgname}-${version}" 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=https://github.com/Misterio77/flavours/archive/refs/tags/v${version}.tar.gz +distfiles=${homepage}/archive/refs/tags/v${version}.tar.gz checksum=48c7659031d399ff125a07b71419935946e0da8d3ef1817a9f89dda32c2dcac1 post_build() {