1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-19 11:37:07 +00:00
termux-packages/packages/frp/build.sh

23 lines
736 B
Bash
Raw Normal View History

TERMUX_PKG_HOMEPAGE=https://gofrp.org/doc
TERMUX_PKG_DESCRIPTION="A fast reverse proxy to expose a local server behind a NAT or firewall to the internet"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.44.0"
TERMUX_PKG_SRCURL=https://github.com/fatedier/frp/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=51a908c12ddf5cab0f3223f09ba7b8ff0890075d399fd2b51839abcf57b9d159
# Depend on its subpackages.
TERMUX_PKG_DEPENDS="frpc, frps"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang
make frpc
make frps
}
termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin bin/frpc
install -Dm700 -t "${TERMUX_PREFIX}"/bin bin/frps
}