# Contributor: Chloe Kudryavtsev # Maintainer: Chloe Kudryavtsev pkgname=bat pkgver=0.13.0 pkgrel=0 pkgdesc="A cat(1) clone with wings" url="https://github.com/sharkdp/bat" arch="x86_64 x86 armhf armv7 aarch64 ppc64le" # limited by rust/cargo license="Apache-2.0" depends="less" # Required for RAW-CONTROL-CHARS makedepends="cargo clang-dev llvm-dev" options="net" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/bat/archive/v$pkgver.tar.gz" export CARGO_HOME="$srcdir"/cargo build() { cargo build \ --release \ --verbose } check() { cargo test --all \ --release \ --verbose } package() { install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname" find "$srcdir" -name bat.1 -exec install -Dm644 {} \ "$pkgdir/usr/share/man/man1/bat.1" \; } sha512sums="3960191bd987f1a62713e25713c0909b28f23ca5e9be0ed80f1099fc4ae9af2415b51257ef91804ee28d222053faf7626990fca8304da8c723cb98a2ca2e440a bat-0.13.0.tar.gz"