aports/testing/openapi-tui/APKBUILD
2024-08-31 10:45:50 +00:00

33 lines
882 B
Text

# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=openapi-tui
pkgver=0.9.4
pkgrel=1
pkgdesc="Terminal UI to list, browse and run APIs defined with openapi spec"
url="https://github.com/zaghaghi/openapi-tui"
# loongarch64: blocked by libc crate
# armf: doesn't build
arch="all !armhf !loongarch64"
license="MIT"
makedepends="cargo cargo-auditable linux-headers perl"
source="$pkgname-$pkgver.tar.gz::https://github.com/zaghaghi/openapi-tui/archive/refs/tags/$pkgver.tar.gz"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
cargo auditable build --release
}
check() {
cargo test
}
package() {
install -Dm755 target/release/openapi-tui -t "$pkgdir"/usr/bin
}
sha512sums="
0033275841cd6e086d5b30fc02a09e4602fd2929c816297f7274e77244254d96fa2eb169ac89c48629c82f1efe21ab56e298dbccb97d331445369cedf9c9335f openapi-tui-0.9.4.tar.gz
"