diff options
author | Chloe Kudryavtsev <toast@toastin.space> | 2019-06-08 12:48:26 -0400 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-06-08 21:47:17 +0000 |
commit | bffb22b835bbba7a1f566d035ad6d28cf5b93736 (patch) | |
tree | 36bcf8ea157c584cd609ecf6c0302fe69e2065ea /testing/bat | |
parent | ec254362830cc75256d0ed10066aae9f16751ce8 (diff) | |
download | aports-bffb22b835bbba7a1f566d035ad6d28cf5b93736.tar.bz2 aports-bffb22b835bbba7a1f566d035ad6d28cf5b93736.tar.xz |
testing/bat: new aport
bat is a cat(1) clone that acts like standard cat when the output is not
a tty.
If the output *is* a tty, it provides syntax highlighting and integrated
paging on top of the typical cat(1) features.
Closes GH-8678
Diffstat (limited to 'testing/bat')
-rw-r--r-- | testing/bat/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/bat/APKBUILD b/testing/bat/APKBUILD new file mode 100644 index 0000000000..a608f01e10 --- /dev/null +++ b/testing/bat/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Chloe Kudryavtsev <toast@toastin.space> +# Maintainer: Chloe Kudryavtsev <toast@toastin.space> +pkgname=bat +pkgver=0.11.0 +pkgrel=0 +pkgdesc="A cat(1) clone with wings" +url="https://github.com/sharkdp/bat" +arch="x86_64" # limited by rust/cargo +license="Apache-2.0" +makedepends="cargo" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/bat/archive/v$pkgver.tar.gz" + +export CARGO_HOME="$srcdir"/cargo +export RUSTFLAGS="-C target-feature=-crt-static" + +build() { + cargo build \ + --release \ + --verbose +} + +check() { + cargo test --all \ + --release \ + --verbose +} + +package() { + install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname" + install -Dm644 doc/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1 +} +sha512sums="29b4ba1a5b42cef43835faec48aca25450ae8ebcc4e3d20933df552462ebd28bb06e1d0245161bf815fce2fcebab547907ac223457320c67eaf8bc053e9d7adf bat-0.11.0.tar.gz" |