mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-21 21:52:38 +02:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
|
|
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
|
|
pkgname=bat
|
|
pkgver=0.15.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 $pkgname-fish-completion::noarch"
|
|
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" \;
|
|
|
|
find "$srcdir" -name bat.fish -exec install -Dm644 {} \
|
|
"$pkgdir"/usr/share/fish/completions/bat.fish \;
|
|
}
|
|
sha512sums="71600ad303925cfbe643591012cd0e8d4920ec64ae3cffbc6bfbd3809ca01f3040d198136786503a4350e0fbb17920397ea0226fcc39c6061f6ac91492ffa93a bat-0.15.0.tar.gz"
|