mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-16 03:02:47 +02:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
|
|
pkgname=oha
|
|
pkgver=1.12.1
|
|
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() {
|
|
# Avoid running out of file descriptors
|
|
ulimit -n 4096
|
|
cargo test --frozen
|
|
}
|
|
|
|
package() {
|
|
install -Dm755 target/release/$pkgname -t "$pkgdir"/usr/bin/
|
|
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
|
}
|
|
|
|
sha512sums="
|
|
41d7c16ac46f8fe92da472a61187d0013f9746569404a689a2e34c828a8eec0d430be9a76fc0cecef4cbd36c8928ce1d1c775bb7adf73e12c023c93db8879b92 oha-1.12.1.tar.gz
|
|
"
|