mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-04 21:22:30 +01:00
37 lines
986 B
Plaintext
37 lines
986 B
Plaintext
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
pkgname=oha
|
|
pkgver=1.8.0
|
|
pkgrel=0
|
|
pkgdesc="HTTP load generator with TUI animation"
|
|
url="https://github.com/hatoo/oha/tree/master"
|
|
arch="x86_64 aarch64" # aws-lc-sys is only supported on those archs
|
|
license="MIT"
|
|
subpackages="$pkgname-doc"
|
|
makedepends="cargo cargo-auditable openssl-dev"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hatoo/oha/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="net" # cargo crates
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
cargo fetch --target="$CTARGET" --locked
|
|
}
|
|
|
|
build() {
|
|
cargo auditable build --frozen --release
|
|
}
|
|
|
|
check() {
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
c5fa4a16dba1477f320ffaf81fd78cc9a44b6be581ac22e42d73bb80745383c37e0ed7f47c87050fa36537f16146503cd6aab43ab77cdd67172f3464f2e0deac oha-1.8.0.tar.gz
|
|
"
|