From 5585036595a596aca31021db559f01fb1bd7e84f Mon Sep 17 00:00:00 2001 From: Marcin Puc Date: Sat, 19 Feb 2022 10:51:01 +0100 Subject: [PATCH] New package: cocogitto-4.1.0 --- srcpkgs/cocogitto/template | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 srcpkgs/cocogitto/template diff --git a/srcpkgs/cocogitto/template b/srcpkgs/cocogitto/template new file mode 100644 index 000000000000..f04561a428c7 --- /dev/null +++ b/srcpkgs/cocogitto/template @@ -0,0 +1,36 @@ +# Template file for 'cocogitto' +pkgname=cocogitto +version=4.1.0 +revision=1 +build_style=cargo +build_helper=qemu +makedepends="pkg-config zlib-devel" +depends="zlib" +short_desc="Conventional Commits toolbox" +maintainer="Marcin Puc " +license="MIT" +homepage="https://github.com/cocogitto/cocogitto" +changelog="https://github.com/cocogitto/cocogitto/blob/main/CHANGELOG.md" +distfiles="https://github.com/cocogitto/cocogitto/archive/${version}.tar.gz" +checksum=0465267125058922462c197584007b6c92b08230acf21a5057faf5f4f5667d72 +# Test suite is not atomic, relies on user environment such as git user configuration +make_check=no + +post_build() { + TARGET_DIR="target/${RUST_TARGET}/release" + + for shell in bash zsh fish; do + vtargetrun ${TARGET_DIR}/cog generate-completions ${shell} > cog.${shell} + vtargetrun ${TARGET_DIR}/coco --completion ${shell} > coco.${shell} + done +} + +post_install() { + vlicense LICENSE + vdoc README.md + + for shell in bash zsh fish; do + vcompletion cog.${shell} ${shell} cog + vcompletion coco.${shell} ${shell} coco + done +}