0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-09-26 09:15:00 +00:00
Files
termux-packages/packages/hz/build.sh
Termux Github Actions 73fb85759c bump(main/hz): 0.9.7
This commit has been automatically submitted by Github Actions.
2025-04-09 06:10:24 +00:00

28 lines
802 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.cloudwego.io
TERMUX_PKG_DESCRIPTION="A high-performance and strong-extensibility Go HTTP framework that helps developers build microservices"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.9.7"
TERMUX_PKG_SRCURL=https://github.com/cloudwego/hertz/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9cfdbc2d32fd3885410e059ec3c3882450224a2599d2665b6dd5f5139e555fdd
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_pre_configure() {
cd "$TERMUX_PKG_SRCDIR"/cmd/hz
termux_setup_golang
go mod init || :
go mod tidy
}
termux_step_make() {
cd "$TERMUX_PKG_SRCDIR"/cmd/hz
go build -o hz
}
termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin "$TERMUX_PKG_SRCDIR"/cmd/hz/hz
}