Files
termux-packages/packages/litespeedtest/build.sh
termux-pacman-bot 6b2cb03cf2 fix(main/litespeedtest): Enable CGO for non AArch64 architectures
Fixes the following error
android/amd64 requires external (cgo) linking, but cgo is not enabled
2024-07-29 06:40:23 +00:00

24 lines
754 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/xxf098/LiteSpeedTest
TERMUX_PKG_DESCRIPTION="A simple tool for batch test ss/ssr/v2ray/trojan servers"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="0.15.0"
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/xxf098/LiteSpeedTest/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=93da1b6ca132a779b4ce754802699c6ecc6817739603e505c8f7c12cf97c69c9
TERMUX_PKG_DEPENDS="resolv-conf"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="VERSION=$TERMUX_PKG_VERSION"
TERMUX_PKG_AUTO_UPDATE=true
termux_step_pre_configure() {
termux_setup_golang
go mod init || :
go mod tidy
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin bin/lite
}