contrib/tre-command/Pkgfile

21 lines
669 B
Plaintext
Raw Normal View History

# Description: tree command, improved
# URL: https://github.com/dduan/tre
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: rust
2021-01-26 13:51:51 +01:00
name=tre-command
2021-03-28 12:15:40 +02:00
version=0.3.6
release=1
2021-01-26 13:51:51 +01:00
source=(https://github.com/dduan/tre/archive/v$version/tre-$version.tar.gz)
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 11:23:43 +01: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
}