mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
# 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
|
||
"
|