blob: a46d23beee0a2013a81c5b021b450ccf6067c26f (
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.17.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 fetch
20 cargo build --release --locked
21 install -Dt $PKG/usr/bin target/release/bat
22 }
|