aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/git-cliff/template
blob: 85304bfc88b75b76883f3daba2fa76521690244f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Template file for 'git-cliff'
pkgname=git-cliff
version=2.4.0
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::"
hostmakedepends="pkg-config"
makedepends="libgit2-devel libzstd-devel"
short_desc="Changelog generator based on conventional commits"
maintainer="tranzystorekk <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=d5791600e440d0842e42f3b0dbc8d503f4902920675054a23f046fbb1c252636

post_patch() {
	cargo update --package git2@0.19.0 --precise 0.18.3
}

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
}