aports/testing/hurl/APKBUILD
2025-03-23 12:41:55 +00:00

51 lines
1.5 KiB
Text

maintainer="Hoang Nguyen <folliekazetani@protonmail.com>"
pkgname=hurl
pkgver=6.1.0
pkgrel=0
pkgdesc="CLI to run HTTP requests defined in simple plain text format"
url="https://hurl.dev/"
arch="all"
license="Apache-2.0"
makedepends="cargo curl-dev libxml2-dev cargo-auditable"
subpackages="
$pkgname-bash-completion
$pkgname-doc
$pkgname-fish-completion
$pkgname-zsh-completion
hurlfmt
"
source="$pkgname-$pkgver.tar.gz::https://github.com/Orange-OpenSource/hurl/archive/refs/tags/$pkgver.tar.gz"
options="!check" # tests require a running local web server
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release --frozen
}
package() {
install -Dm755 target/release/hurl -t "$pkgdir"/usr/bin/
install -Dm644 docs/manual/hurl.1 docs/manual/hurlfmt.1 \
-t "$pkgdir"/usr/share/man/man1/
install -Dm644 completions/_hurl completions/_hurlfmt \
-t "$pkgdir"/usr/share/zsh/site-functions/
install -Dm644 completions/hurl.bash completions/hurlfmt.bash \
-t "$pkgdir"/usr/share/bash-completion/completions/
install -Dm644 completions/hurl.fish completions/hurlfmt.fish \
-t "$pkgdir"/usr/share/fish/vendor_completions.d/
}
hurlfmt() {
pkgdesc="Formatter for Hurl files"
install -Dm755 "$builddir"/target/release/hurlfmt -t "$subpkgdir"/usr/bin/
}
sha512sums="
15bccdf1d0f5116f054caf88a6033fb087370779c397c87f00ed76f5eb4d1b3cbd751ee5aaa3aa26d08bc4582dbe91aa9b5ec0b3241285c3444403250d2dba43 hurl-6.1.0.tar.gz
"