mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 04:44:57 +02:00
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
|
|
pkgname=csview
|
|
pkgver=1.3.4
|
|
pkgrel=0
|
|
pkgdesc="Pretty csv viewer for cli with cjk/emoji support"
|
|
url="https://github.com/wfxr/csview"
|
|
arch="all"
|
|
license="Apache-2.0 OR MIT"
|
|
makedepends="cargo cargo-auditable"
|
|
subpackages="
|
|
$pkgname-bash-completion
|
|
$pkgname-fish-completion
|
|
$pkgname-zsh-completion
|
|
"
|
|
source="https://github.com/wfxr/csview/archive/v$pkgver/csview-$pkgver.tar.gz
|
|
update-rust-libc.patch
|
|
"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable 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/vendor_completions.d/
|
|
install -D -m644 completions/zsh/* -t "$pkgdir"/usr/share/zsh/site-functions/
|
|
}
|
|
|
|
sha512sums="
|
|
bc9156f6849d1d2b321b3dab3e33dc789a3e2dba884e5b723dbbf740e9c80de753097df596bdbf3777ed6f28de28f2a3fcab1d8bbbaef628e4831a53a33e69a8 csview-1.3.4.tar.gz
|
|
6f34884f1fcaea75937a68f7f1f5d1ad6eb9c249f01dfc96e073eaf32c7389c4ad45c46dde6ad88d40bfcbdf0bafb189855f20aa4a12ad7edb9a8d615d82e1b2 update-rust-libc.patch
|
|
"
|