1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-25 12:07:07 +00:00

sing-box: Bump to 1.2-beta8

This commit is contained in:
CHIZI-0618 2023-03-10 12:04:17 +08:00 committed by Kevin Williams
parent d244641d07
commit 2cd5304a44

View File

@ -2,27 +2,31 @@ TERMUX_PKG_HOMEPAGE=https://sing-box.sagernet.org
TERMUX_PKG_DESCRIPTION="The universal proxy platform" TERMUX_PKG_DESCRIPTION="The universal proxy platform"
TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="kay9925@outlook.com" TERMUX_PKG_MAINTAINER="kay9925@outlook.com"
TERMUX_PKG_VERSION="1.2-beta7" TERMUX_PKG_VERSION="1.2-beta8"
TERMUX_PKG_SRCURL="https://github.com/SagerNet/sing-box/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz" TERMUX_PKG_SRCURL="https://github.com/SagerNet/sing-box/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz"
TERMUX_PKG_SHA256=f0c6d438fff54ac5dc0ff8ef01a2a016dc9dc8a6dd7e428fe7546d38daaa6e63 TERMUX_PKG_SHA256=dd2e843cbb9698f32ececd946d5f0a414977bc92f605f50b60f424bf7a5bee56
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() { termux_step_make() {
termux_setup_golang termux_setup_golang
local tags="with_quic,with_grpc,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_reality_server,with_clash_api,with_gvisor" local tags="with_quic,with_grpc,with_dhcp,with_wireguard,with_shadowsocksr,with_ech,with_utls,with_reality_server,with_clash_api,with_gvisor"
local ldflags="\
-w -s \
-X 'github.com/sagernet/sing-box/constant.Version=${TERMUX_PKG_VERSION}' \
"
export CGO_ENABLED=1 export CGO_ENABLED=1
go build \ go build \
-trimpath \ -trimpath \
-tags "$tags" \ -tags "${tags}" \
-ldflags "-s -w -buildid='" \ -ldflags="${ldflags}" \
-o "sing-box" \ -o "${TERMUX_PKG_NAME}" \
./cmd/sing-box ./cmd/sing-box
} }
termux_step_make_install() { termux_step_make_install() {
install -Dm700 ./sing-box ${TERMUX_PREFIX}/bin install -Dm700 ./${TERMUX_PKG_NAME} ${TERMUX_PREFIX}/bin
} }