blob: b7ec830d591da185115ddaf19ed476c63ee699d4 (
plain)
1 # Description: View disk space usage and delete unwanted data, fast.
2 # URL: https://github.com/Byron/dua-cli
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5
6 name=dua-cli
7 version=2.14.3
8 release=1
9 source=(https://github.com/Byron/dua-cli/archive/v$version/$name-$version.tar.gz)
10
11 unpack_source() {
12 for file in ${source[@]}; do
13 case ${file##*/} in
14 $name-$version.tar.gz)
15 tar xfvz $(get_filename $file) -C $SRC ;;
16 *)
17 cp $(get_filename $file) $SRC ;;
18 esac
19 done
20 }
21
22 build() {
23 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
24 mkdir "$PKGMK_SOURCE_DIR/rust" || true
25 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
26
27 cargo update --manifest-path $name-$version/Cargo.toml
28 cargo build --release --locked --manifest-path $name-$version/Cargo.toml
29
30 install -Dt $PKG/usr/bin $name-$version/target/release/dua
31 }
|