void-packages/srcpkgs/git-cliff/template

38 lines
1.2 KiB
Bash

# Template file for 'git-cliff'
pkgname=git-cliff
version=1.4.0
revision=1
archs="x86_64* i686* aarch64* arm*" # ring
build_style=cargo
build_helper=qemu
make_install_args="--path git-cliff"
make_check_args="-- --skip repo::test::git_log --skip repo::test::git_tags" # This test fails without a git repo
hostmakedepends="pkg-config"
makedepends="libgit2-devel"
short_desc="Changelog generator based on conventional commits"
maintainer="Jan Christian Grünhage <jan.christian@gruenhage.xyz>"
license="Apache-2.0, MIT"
homepage="https://github.com/orhun/git-cliff"
changelog="https://raw.githubusercontent.com/orhun/git-cliff/main/CHANGELOG.md"
distfiles="https://github.com/orhun/git-cliff/archive/refs/tags/v${version}.tar.gz"
checksum=8ec9a2c9cd0e97a8111a82bcf2fce415f40818897bdc76a2c5cc63d99114ec30
post_patch() {
cargo update --package git2@0.18.1 --precise 0.17.2
}
post_install() {
vdoc README.md
OUT_DIR=${PWD} vtargetrun ${DESTDIR}/usr/bin/git-cliff-completions
vcompletion "_git-cliff" zsh
vcompletion "git-cliff.fish" fish
vcompletion "git-cliff.bash" bash
OUT_DIR=${PWD} vtargetrun ${DESTDIR}/usr/bin/git-cliff-mangen
vman git-cliff.1
vlicense LICENSE-MIT
}