blob: d9bf9d92ddd2e8e086767ad8b64dc8f799e7655a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: iamawacko <iamawacko@protonmail.com>
pkgname=ruget
pkgver=0.5.0
pkgrel=2
arch=(any)
pkgdesc="Alternative to wget written in Rust"
url="https://github.com/ksk001100/ruget"
license=('MIT')
makedepends=(cargo)
source=("https://github.com/ksk001100/ruget/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('548c8f268646cd0101e977c6bfb02a668b9f10881033f4aceb4a05a2b5484590')
prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
check() {
cd "$pkgname-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen
}
package() {
cd "$pkgname-$pkgver"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|