mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-05 09:27:19 +02:00
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
|
|
pkgname=tealdeer
|
|
pkgver=1.7.2
|
|
pkgrel=0
|
|
pkgdesc="Very fast implementation of tldr in Rust"
|
|
url="https://tealdeer-rs.github.io/tealdeer/"
|
|
arch="all"
|
|
license="MIT AND Apache-2.0"
|
|
makedepends="cargo openssl-dev cargo-auditable"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/tealdeer-rs/tealdeer/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release --no-default-features --features native-tls
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen --no-default-features --features native-tls
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/tldr -t "$pkgdir"/usr/bin/
|
|
|
|
install -Dm644 completion/bash_tealdeer \
|
|
"$pkgdir"/usr/share/bash-completion/completions/tldr
|
|
install -Dm644 completion/fish_tealdeer \
|
|
"$pkgdir"/usr/share/fish/vendor_completions.d/tldr.fish
|
|
install -Dm644 completion/zsh_tealdeer \
|
|
"$pkgdir"/usr/share/zsh/site-functions/_tldr
|
|
}
|
|
|
|
sha512sums="
|
|
4153f4af9621a38f066835372e756d8746c73beca512807e2acde0666e6ea121d1568e70c05153377b8d8174d7ca7e633078c4ef8d7a5e0af35ed5877ee236ba tealdeer-1.7.2.tar.gz
|
|
"
|