1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-17 20:47:06 +00:00
termux-packages/packages/storj-uplink/build.sh
2022-12-07 05:23:45 +00:00

24 lines
617 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.storj.io/integrations/uplink-cli
TERMUX_PKG_DESCRIPTION="Storj DCS Uplink CLI"
TERMUX_PKG_LICENSE="AGPL-V3"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.68.2
TERMUX_PKG_SRCURL=https://github.com/storj/storj/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=024629df45fb7434c790b88f1908dab4af69aa19f02cf1215da57947e02814ee
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
termux_setup_golang
go mod init || :
go mod tidy
}
termux_step_make() {
go build ./cmd/uplink
}
termux_step_make_install() {
install -Dm700 -t $TERMUX_PREFIX/bin uplink
}