void-packages/srcpkgs/git-cliff/template

41 lines
1.2 KiB
Bash

# Template file for 'git-cliff'
pkgname=git-cliff
version=2.2.2
revision=1
archs="x86_64* i686* aarch64* arm*" # ring
build_style=cargo
build_helper=qemu
make_install_args="--path git-cliff"
# These tests fail without a git repo
make_check_args="--
--skip repo::test::git_tags
--skip repo::test::git_upstream_remote
--skip repo::test::get_latest_commit
--skip repo::test::get_latest_tag"
hostmakedepends="pkg-config"
makedepends="libgit2-devel libzstd-devel"
short_desc="Changelog generator based on conventional commits"
maintainer="Marcin Puc <tranzystorek.io@protonmail.com>"
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=c47b517907cfede556c50d790fddc07039c7ab477a2a059dde57090c97adfbac
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
rm ${DESTDIR}/usr/bin/git-cliff-{completions,mangen}
vlicense LICENSE-MIT
}