void-packages/srcpkgs/cocogitto/template

30 lines
920 B
Bash
Raw Normal View History

2022-02-19 10:51:01 +01:00
# Template file for 'cocogitto'
pkgname=cocogitto
2022-09-09 19:58:31 +02:00
version=5.2.0
2022-10-15 01:44:17 +02:00
revision=2
2022-02-19 10:51:01 +01:00
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libgit2-devel"
2022-09-09 19:58:31 +02:00
depends="gnupg"
2022-02-19 10:51:01 +01:00
short_desc="Conventional Commits toolbox"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
license="MIT"
homepage="https://github.com/cocogitto/cocogitto"
changelog="https://raw.githubusercontent.com/cocogitto/cocogitto/main/CHANGELOG.md"
2022-09-09 19:58:31 +02:00
distfiles="https://github.com/cocogitto/cocogitto/archive/refs/tags/${version}.tar.gz"
checksum=99f9dee05597d7721f6d046dbfefba5cb8d1c4ae22ced415f724affb3a6bd0cc
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_install() {
2022-10-15 01:44:17 +02:00
COG="${DESTDIR}/usr/bin/cog"
2022-02-19 10:51:01 +01:00
for shell in bash zsh fish; do
2022-10-15 01:44:17 +02:00
vtargetrun ${COG} generate-completions ${shell} > cog.${shell}
2022-02-19 10:51:01 +01:00
vcompletion cog.${shell} ${shell} cog
done
2022-10-15 01:44:17 +02:00
vdoc README.md
vlicense LICENSE
2022-02-19 10:51:01 +01:00
}