blob: 64e6c600674a3405c7eb02ae3a3b04f62be40a58 (
plain)
1 # Description: Alternative to wget written in Rust
2 # URL: https://github.com/ksk001100/ruget
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: rust
5
6 name=ruget
7 version=0.4.3
8 release=1
9 source=(https://github.com/ksk001100/ruget/archive/v$version/$name-$version.tar.gz)
10
11 build() {
12 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
13 mkdir "$PKGMK_SOURCE_DIR/rust" || true
14 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
15
16 cargo update --manifest-path $name-$version/Cargo.toml
17 cargo build --manifest-path $name-$version/Cargo.toml --release
18
19 install -Dt $PKG/usr/bin $name-$version/target/release/$name
20 }
|