0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
Termux Github Actions bc5d263eb8 bump(main/hz): 0.9.3
This commit has been automatically submitted by Github Actions.
2024-09-06 12:13:51 +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.3"
TERMUX_PKG_SRCURL=https://github.com/cloudwego/hertz/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=9c9833fa4db186be030eeeb9565a219ce2d240cbff9081faa36c7a588458c5c1
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
}