39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'cocogitto'
|
|
pkgname=cocogitto
|
|
version=6.0.1
|
|
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=2a0e332b7028ffcfeb113c734b4bf506c34362730e371b03a3e4a71142099330
|
|
# Test suite is not atomic, relies on user environment such as git user configuration
|
|
make_check=no
|
|
|
|
post_patch() {
|
|
cargo update --package git2@0.18.1 --precise 0.17.2
|
|
}
|
|
|
|
post_install() {
|
|
local cog="${DESTDIR}/usr/bin/cog"
|
|
for shell in bash zsh fish; do
|
|
vtargetrun ${cog} generate-completions ${shell} > cog.${shell}
|
|
vcompletion cog.${shell} ${shell} cog
|
|
done
|
|
|
|
vtargetrun ${cog} generate-manpages "${XBPS_BUILDDIR}/${pkgname}-${version}/gen"
|
|
for manpage in gen/*.1; do
|
|
vman ${manpage}
|
|
done
|
|
|
|
vdoc README.md
|
|
vlicense LICENSE
|
|
}
|