void-packages/srcpkgs/cocogitto/template

35 lines
966 B
Bash
Raw Normal View History

2022-02-19 10:51:01 +01:00
# Template file for 'cocogitto'
pkgname=cocogitto
2022-04-13 17:38:50 +02:00
version=5.1.0
2022-02-19 10:51:01 +01:00
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libgit2-devel"
short_desc="Conventional Commits toolbox"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
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"
2022-04-13 17:38:50 +02:00
checksum=662bb909c6468124ad19a90bc07a4f24345167486bd19542375ead7a8f20de02
2022-02-19 10:51:01 +01:00
# 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}
done
}
post_install() {
vlicense LICENSE
vdoc README.md
for shell in bash zsh fish; do
vcompletion cog.${shell} ${shell} cog
done
}