From 9422bbce50f4a74f71e1bce6ee184438aeda40f1 Mon Sep 17 00:00:00 2001 From: Tim Biermann Date: Tue, 26 Jan 2021 11:02:36 +0000 Subject: [PATCH] tre-command: initial commit, version 0.3.3 --- tre-command/.footprint | 3 +++ tre-command/.signature | 5 +++++ tre-command/Pkgfile | 21 +++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 tre-command/.footprint create mode 100644 tre-command/.signature create mode 100644 tre-command/Pkgfile diff --git a/tre-command/.footprint b/tre-command/.footprint new file mode 100644 index 000000000..e07d39a45 --- /dev/null +++ b/tre-command/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/tre diff --git a/tre-command/.signature b/tre-command/.signature new file mode 100644 index 000000000..409c94d5a --- /dev/null +++ b/tre-command/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3xG/zk5GkbMUtzwliM8qqSciIGYHBI8y6vxyDgFcD5zNEQio1ocDrEOcWZh7RrGlBowEmHP98HQ2yq02bgemVA0= +SHA256 (Pkgfile) = 11ef2c491d2744658a9e10778ddc414118dedfd40035aa064bdb1f3c8fd2605b +SHA256 (.footprint) = 50c2d8d318f6bd8993b5018f524785d8ec6ebce93ba007021ad84647d08b71da +SHA256 (tre-0.3.3.tar.gz) = 321a673e55397e80a0229537399f2c762a7d5196e3a486a684ea3c481e1d7bec diff --git a/tre-command/Pkgfile b/tre-command/Pkgfile new file mode 100644 index 000000000..7624d2eba --- /dev/null +++ b/tre-command/Pkgfile @@ -0,0 +1,21 @@ +# Description: tree command, improved +# URL: https://github.com/dduan/tre +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: rust + +name=tre +version=0.3.3 +release=1 +source=(https://github.com/dduan/tre/archive/v$version/$name-$version.tar.gz) + +build() { + cd $name-$version + prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache + mkdir "$PKGMK_SOURCE_DIR/rust" || true + export CARGO_HOME="$PKGMK_SOURCE_DIR/rust" + + cargo update + cargo fetch + cargo build --release --locked + install -Dt $PKG/usr/bin target/release/tre +}