0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-02 18:05:57 +00:00
Termux Github Actions 57f34f9d16 bump(main/croc): 10.2.1
This commit has been automatically submitted by Github Actions.
2024-12-31 18:11:36 +00:00

24 lines
795 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/schollz/croc
TERMUX_PKG_DESCRIPTION="Easily and securely send things from one computer to another"
TERMUX_PKG_LICENSE=MIT
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="1:10.2.1"
TERMUX_PKG_SRCURL=https://github.com/schollz/croc/archive/refs/tags/v${TERMUX_PKG_VERSION:2}.tar.gz
TERMUX_PKG_SHA256=78bf0efd00daa9002bcdeb460f4ddaf82dde4480e63862feab0958ed9ed54963
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
cd $TERMUX_PKG_SRCDIR
termux_setup_golang
# See https://github.com/wlynxg/anet?tab=readme-ov-file#how-to-build-with-go-1230-or-later
# regarding -ldflags=-checklinkname=0:
go build -ldflags=-checklinkname=0 -o croc -trimpath
}
termux_step_make_install() {
install -m755 croc $TERMUX_PREFIX/bin/croc
}