termux-packages/packages/croc/build.sh

21 lines
634 B
Bash
Raw Normal View History

2020-09-06 23:46:44 +02:00
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=9.2.0
2020-09-06 23:46:44 +02:00
TERMUX_PKG_SRCURL=https://github.com/schollz/croc/releases/download/v${TERMUX_PKG_VERSION}/croc_${TERMUX_PKG_VERSION}_src.tar.gz
TERMUX_PKG_SHA256=d3439cd17e1e0eaceef2598e85a7f48d47ae2c428a31b5cd13bd15faf4c43634
2020-09-06 23:46:44 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
cd $TERMUX_PKG_SRCDIR
termux_setup_golang
2020-09-06 23:46:44 +02:00
go build -o croc -trimpath
}
termux_step_make_install() {
install -m755 croc $TERMUX_PREFIX/bin/croc
}