contrib/bat/Pkgfile

22 lines
546 B
Plaintext

# Description: A cat(1) clone with wings
# URL: https://github.com/sharkdp/bat
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
name=bat
version=0.22.1
release=1
source=(https://github.com/sharkdp/bat/archive/v$version/$name-$version.tar.gz)
build() {
cd $name-$version
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
mkdir "$PKGMK_SOURCE_DIR/rust" || true
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
cargo update
cargo build --release --locked
install -Dt $PKG/usr/bin target/release/bat
}