0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-08-03 20:10:37 +00:00
Files
termux-packages/packages/litespeedtest/build.sh
Biswapriyo Nath 4e4d9e85d8 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 11:53:30 +05:30

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
}