mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-15 10:42:39 +02:00
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
# Contributor: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
|
||
pkgname=halp
|
||
pkgver=0.1.7
|
||
pkgrel=1
|
||
pkgdesc="A CLI tool to get help with CLI tools"
|
||
url="https://github.com/orhun/halp"
|
||
# s390x, ppc64le, riscv64: blocked by ring crate
|
||
arch="all !s390x !ppc64le !riscv64"
|
||
license="MIT OR Apache-2.0"
|
||
makedepends="cargo cargo-auditable"
|
||
checkdepends="util-linux"
|
||
subpackages="
|
||
$pkgname-doc
|
||
$pkgname-bash-completion
|
||
$pkgname-zsh-completion
|
||
$pkgname-fish-completion
|
||
"
|
||
options="net"
|
||
source="$pkgname-$pkgver.tar.gz::https://github.com/orhun/halp/archive/v$pkgver.tar.gz"
|
||
|
||
|
||
prepare() {
|
||
default_prepare
|
||
|
||
cargo fetch --target="$CTARGET" --locked
|
||
}
|
||
|
||
build() {
|
||
cargo auditable build --frozen --release
|
||
mkdir -p man
|
||
OUT_DIR=man/ "./target/release/$pkgname-mangen"
|
||
mkdir -p completions
|
||
OUT_DIR=completions/ "./target/release/$pkgname-completions"
|
||
}
|
||
|
||
check() {
|
||
OUT_DIR=target cargo test --frozen
|
||
}
|
||
|
||
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/vendor_completions.d"
|
||
install -Dm 644 "completions/_$pkgname" -t "$pkgdir/usr/share/zsh/site-functions"
|
||
}
|
||
|
||
sha512sums="
|
||
6f30e87464c85c6c1d25d9a8e45fba0b245acdb2deab076d8f5306ee8b396fd9b55725277ed889ff3a8574acd9b3c82d19c7ac61469d5eac84a91e3b477090bf halp-0.1.7.tar.gz
|
||
"
|