36 lines
1002 B
Bash
36 lines
1002 B
Bash
# Template file for 'cocogitto'
|
|
pkgname=cocogitto
|
|
version=5.2.0
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libgit2-devel"
|
|
depends="gnupg"
|
|
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"
|
|
distfiles="https://github.com/cocogitto/cocogitto/archive/refs/tags/${version}.tar.gz"
|
|
checksum=99f9dee05597d7721f6d046dbfefba5cb8d1c4ae22ced415f724affb3a6bd0cc
|
|
# 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
|
|
}
|