aports/community/git-cliff/APKBUILD
psykose 7853d213cc */*: remove CARGO_REGISTRIES_CRATES_IO_PROTOCOL
we now set this in abuild instead.
2023-05-06 04:28:28 +02:00

55 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
pkgname=git-cliff
pkgver=1.2.0
pkgrel=0
pkgdesc="A highly customizable changelog generator"
url="https://github.com/orhun/git-cliff"
# s390x, ppc64le, riscv64: blocked by ring crate
arch="all !s390x !ppc64le !riscv64"
license="GPL-3.0-or-later"
makedepends="
cargo
libgit2-dev
"
subpackages="
$pkgname-doc
$pkgname-bash-completion
$pkgname-zsh-completion
$pkgname-fish-completion
"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/git-cliff/archive/v$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build --frozen --release
mkdir -p man
OUT_DIR=man/ "./target/release/$pkgname-mangen"
mkdir -p completions
OUT_DIR=completions/ "./target/release/$pkgname-completions"
}
check() {
cargo test --frozen -- --skip "git_log"
}
package() {
install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 "man/$pkgname.1" -t "$pkgdir/usr/share/man/man1"
install -Dm 644 "completions/$pkgname.bash" "$pkgdir/usr/share/bash-completion/completions/$pkgname"
install -Dm 644 "completions/$pkgname.fish" -t "$pkgdir/usr/share/fish/completions"
install -Dm 644 "completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions"
}
sha512sums="
abc87b312562c19d5e0936c67449bd496180d72992adf6688c8bdba8510f3a9cc7af28ad7c078ffc178e5b6543f4542d4376093212e4068c4d82f415cad22662 git-cliff-1.2.0.tar.gz
"