mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-04 23:42:07 +01:00
* Remove uneccesary `export RUSTFLAGS="-C target-feature=-crt-static"`, which is disabled by default anyway
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# Contributor: Chloe Kudryavtsev <toast@toastin.space>
|
|
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
|
|
pkgname=bat
|
|
pkgver=0.11.0
|
|
pkgrel=1
|
|
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"
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sharkdp/bat/archive/v$pkgver.tar.gz"
|
|
|
|
export CARGO_HOME="$srcdir"/cargo
|
|
|
|
build() {
|
|
# libminiz_sys fails to build otherwise
|
|
case "$CARCH" in
|
|
x86)
|
|
export CFLAGS="$CFLAGS -fno-stack-protector"
|
|
;;
|
|
esac
|
|
|
|
|
|
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"
|