blob: 838900451a05654e66b1f787b88a97e230956108 (
plain)
1 # Description: A viewer for git and diff output
2 # URL: https://github.com/dandavison/delta
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5
6 name=delta
7 version=0.4.4
8 release=1
9 source=(https://github.com/dandavison/delta/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
14 mkdir "$PKGMK_SOURCE_DIR/rust" || true
15 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
16
17 cargo update
18 cargo fetch
19 cargo build --release --locked
20 install -Dt $PKG/usr/bin target/release/delta
21 }
|