0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
Termux Github Actions 270e45ee26 bump(main/flyctl): 0.3.45
This commit has been automatically submitted by Github Actions.
2024-12-03 00:33:37 +00:00

29 lines
830 B
Bash

TERMUX_PKG_HOMEPAGE=https://fly.io
TERMUX_PKG_DESCRIPTION="Command line tools for fly.io services"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Yaksh Bariya <thunder-coding@termux.dev>"
TERMUX_PKG_VERSION="0.3.45"
TERMUX_PKG_SRCURL=https://github.com/superfly/flyctl/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=6211873428a73eb0ec95776cb25b6c5772733bc8d542492bf2f25fe9e8769f26
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_BLACKLISTED_ARCHES="i686, arm"
termux_step_post_get_source() {
termux_setup_golang
export GOPATH=$TERMUX_PKG_SRCDIR/go
export GOOS="android"
go get
chmod +w $GOPATH -R
}
termux_step_make() {
export GOPATH=$TERMUX_PKG_SRCDIR/go
go build -o bin/flyctl
}
termux_step_make_install() {
install -Dm700 -t "$TERMUX_PREFIX"/bin "$TERMUX_PKG_SRCDIR/bin/flyctl"
}