1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/csview/APKBUILD
ptrcnull fbcf4c4f11 */*: utilise sparse crates.io fetches
this is a million times faster

new only in rust 1.68, and fails on older versions,
but we have only latest in aports and don't support anything else, so
it's okay.
2023-03-10 00:35:53 +01:00

46 lines
1.2 KiB
Text

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=csview
pkgver=1.2.2
pkgrel=0
pkgdesc="Pretty csv viewer for cli with cjk/emoji support"
url="https://github.com/wfxr/csview"
arch="aarch64 armhf armv7 ppc64le x86 x86_64" # blocked by rust/cargo
license="Apache-2.0 OR MIT"
makedepends="cargo"
subpackages="
$pkgname-bash-completion
$pkgname-fish-completion
$pkgname-zsh-completion
"
source="https://github.com/wfxr/csview/archive/v$pkgver/csview-$pkgver.tar.gz"
export CARGO_REGISTRIES_CRATES_IO_PROTOCOL="sparse"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo build --frozen --release
}
check() {
cargo test --frozen
}
package() {
install -D -m755 target/release/$pkgname -t "$pkgdir"/usr/bin/
install -D -m644 completions/bash/$pkgname.bash \
"$pkgdir"/usr/share/bash-completion/completions/$pkgname
install -D -m644 completions/fish/* -t "$pkgdir"/usr/share/fish/completions/
install -D -m644 completions/zsh/* -t "$pkgdir"/usr/share/zsh/site-functions/
}
sha512sums="
b4248c7fdf22b1dc3a23eb3c2792bd05cce945a4b646500541d6927e1722be79c78aa5421b74421c35ca70ab814468db27e5bf6016a942c856568b6c1a734010 csview-1.2.2.tar.gz
"