2021-06-28 20:28:55 +02:00
|
|
|
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 <yakshbari4@gmail.com>"
|
2021-12-03 01:15:20 +01:00
|
|
|
TERMUX_PKG_VERSION=0.0.260
|
2021-06-28 20:28:55 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/superfly/flyctl/archive/v$TERMUX_PKG_VERSION.tar.gz
|
2021-12-03 01:15:20 +01:00
|
|
|
TERMUX_PKG_SHA256=14579d2c2cc9d17d684bff4ac6a81a0acc13b12389cccf08cbcc8f23f44dc860
|
2021-10-04 12:43:31 +02:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2021-06-28 20:28:55 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_BLACKLISTED_ARCHES="i686, arm"
|
|
|
|
|
2021-08-24 22:37:16 +02:00
|
|
|
|
2021-06-28 20:28:55 +02:00
|
|
|
termux_step_post_get_source() {
|
|
|
|
termux_setup_golang
|
|
|
|
export GOPATH=$TERMUX_PKG_SRCDIR/go
|
2021-07-10 16:00:18 +02:00
|
|
|
go get
|
2021-08-21 14:33:11 +02:00
|
|
|
chmod +w $GOPATH -R
|
2021-06-28 20:28:55 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|