blob: 45e2a073985a23ce62193588a56a206369d2cdc1 (
plain)
1 # Description: A cat(1) clone with wings
2 # URL: https://github.com/sharkdp/bat
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5
6 name=bat
7 version=0.22.1
8 release=1
9 source=(https://github.com/sharkdp/bat/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
15 mkdir "$PKGMK_SOURCE_DIR/rust" || true
16 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
17
18 cargo update
19 cargo build --release --locked
20 install -Dt $PKG/usr/bin target/release/bat
21 }
|