contrib/bat/Pkgfile

24 lines
711 B
Plaintext
Raw Normal View History

2020-07-21 19:23:48 +02:00
# Description: A cat(1) clone with wings
# URL: https://github.com/sharkdp/bat
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
2023-02-25 20:07:58 +01:00
# Optional: libgit2
2020-07-21 19:23:48 +02:00
name=bat
2023-03-25 13:28:04 +01:00
version=0.23.0
release=1
2020-07-21 19:23:48 +02:00
source=(https://github.com/sharkdp/bat/archive/v$version/$name-$version.tar.gz)
build() {
2023-02-25 20:07:58 +01:00
prt-get isinst libgit2 && PKGMK_BAT+=' git'
2020-11-23 16:27:10 +01:00
2020-07-21 19:23:48 +02:00
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
2023-02-25 20:07:58 +01:00
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
2020-07-21 19:23:48 +02:00
2023-02-25 20:07:58 +01:00
cargo build --release --manifest-path $name-$version/Cargo.toml \
--no-default-features \
--features "bugreport build-assets minimal-application $PKGMK_BAT"
install -Dt $PKG/usr/bin $name-$version/target/release/$name
2020-07-21 19:23:48 +02:00
}