contrib/bat/Pkgfile

24 lines
711 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
# Optional: libgit2
name=bat
version=0.22.1
release=2
source=(https://github.com/sharkdp/bat/archive/v$version/$name-$version.tar.gz)
build() {
prt-get isinst libgit2 && PKGMK_BAT+=' git'
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
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
}