2021-01-26 11:02:36 +00:00
|
|
|
# Description: tree command, improved
|
|
|
|
# URL: https://github.com/dduan/tre
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: rust
|
|
|
|
|
2021-01-26 12:51:51 +00:00
|
|
|
name=tre-command
|
2021-03-28 10:15:40 +00:00
|
|
|
version=0.3.6
|
2021-01-26 11:02:36 +00:00
|
|
|
release=1
|
2021-01-26 12:51:51 +00:00
|
|
|
source=(https://github.com/dduan/tre/archive/v$version/tre-$version.tar.gz)
|
2021-01-26 11:02:36 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
|
2021-02-21 10:23:43 +00:00
|
|
|
cargo update --manifest-path tre-$version/Cargo.toml
|
|
|
|
cargo fetch --manifest-path tre-$version/Cargo.toml
|
|
|
|
cargo build --release --locked --manifest-path tre-$version/Cargo.toml
|
|
|
|
install -Dt $PKG/usr/bin tre-$version/target/release/tre
|
2021-01-26 11:02:36 +00:00
|
|
|
}
|