2022-01-18 04:17:22 +00:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.bittorrent.com/btfs/
|
|
|
|
TERMUX_PKG_DESCRIPTION="Decentralized file system integrating with TRON network and Bittorrent network"
|
|
|
|
TERMUX_PKG_LICENSE="Apache-2.0, MIT"
|
|
|
|
TERMUX_PKG_LICENSE_FILE="LICENSE-APACHE, LICENSE-MIT"
|
|
|
|
TERMUX_PKG_MAINTAINER="Simbad Marino <cctechmx@gmail.com>"
|
2023-06-26 12:13:12 +00:00
|
|
|
TERMUX_PKG_VERSION="2.3.2"
|
2022-01-18 04:17:22 +00:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/bittorrent/go-btfs/archive/refs/tags/btfs-v${TERMUX_PKG_VERSION}.tar.gz
|
2023-06-26 12:13:12 +00:00
|
|
|
TERMUX_PKG_SHA256=4741c4d33ba9f241dbec4d3e71320f6ea0917486c4d6508959d0813d39e7594c
|
2022-01-18 04:17:22 +00:00
|
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
2022-04-01 07:41:46 +00:00
|
|
|
TERMUX_PKG_UPDATE_VERSION_REGEXP="\d+\.\d+\.\d+"
|
2023-04-17 23:27:07 +00:00
|
|
|
TERMUX_PKG_DEPENDS="libc++"
|
2022-01-18 04:17:22 +00:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2022-02-21 09:08:39 +00:00
|
|
|
TERMUX_PKG_CONFLICTS="btfs"
|
|
|
|
TERMUX_PKG_REPLACES="btfs"
|
2023-04-17 23:27:07 +00:00
|
|
|
TERMUX_PKG_GO_USE_OLDER=true
|
2022-01-18 04:17:22 +00:00
|
|
|
|
2022-02-11 06:49:24 +00:00
|
|
|
termux_step_pre_configure() {
|
2022-01-18 04:17:22 +00:00
|
|
|
termux_setup_golang
|
2022-02-21 08:27:35 +00:00
|
|
|
go mod init || :
|
|
|
|
go mod tidy
|
2022-02-11 06:49:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make() {
|
2022-01-18 04:17:22 +00:00
|
|
|
make build
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2022-02-21 09:08:39 +00:00
|
|
|
install -Dm700 -t $TERMUX_PREFIX/bin $TERMUX_PKG_SRCDIR/cmd/btfs/btfs
|
|
|
|
ln -sfT btfs $TERMUX_PREFIX/bin/btfs2
|
2022-01-18 04:17:22 +00:00
|
|
|
}
|