Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ipfs): update to 1.12.2 #9948

Merged
merged 1 commit into from
Apr 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions packages/ipfs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TERMUX_PKG_HOMEPAGE=https://ipfs.io/
TERMUX_PKG_DESCRIPTION="A peer-to-peer hypermedia distribution protocol"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.12.1
TERMUX_PKG_VERSION=0.12.2
TERMUX_PKG_SRCURL=https://github.com/ipfs/go-ipfs/releases/download/v${TERMUX_PKG_VERSION}/go-ipfs-source.tar.gz
TERMUX_PKG_SHA256=7d41310af13ac79545065ebacb9d831afafc64d49767a318a5540ffc3ed7df6f
TERMUX_PKG_SHA256=eba34d2cc49f7811d087f4259c44c1fecb2b6bd08a6c3fa3b5a26e5fed78c74d
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_SUGGESTS="termux-services"
TERMUX_PKG_SERVICE_SCRIPT=("ipfs" "[ ! -d \"${TERMUX_ANDROID_HOME}/.ipfs\" ] && ipfs init --empty-repo 2>&1 && ipfs config --json Swarm.EnableRelayHop false 2>&1 && ipfs config --json Swarm.EnableAutoRelay true 2>&1; exec ipfs daemon --enable-namesys-pubsub 2>&1")
Expand All @@ -13,20 +13,17 @@ termux_step_make() {
termux_setup_golang

export GOPATH=${TERMUX_PKG_BUILDDIR}
export GOARCH=${TERMUX_ARCH}

if [ "${TERMUX_ARCH}" = "aarch64" ]; then
GOARCH="arm64"
elif [ "${TERMUX_ARCH}" = "i686" ]; then
GOARCH="386"
elif [ "${TERMUX_ARCH}" = "x86_64" ]; then
GOARCH="amd64"
fi

mkdir -p "${GOPATH}/src/github.com/ipfs"
cp -a "${TERMUX_PKG_SRCDIR}" "${GOPATH}/src/github.com/ipfs/go-ipfs"
cd "${GOPATH}/src/github.com/ipfs/go-ipfs"

# Needed to build against go 1.18.
# TODO: Remove after https://github.com/ipfs/go-ipfs/issues/8819 is resolved.
go get github.com/lucas-clemente/quic-go@v0.26.0
go mod edit -go=1.18 # qo-qtls needs go 1.18
go mod tidy && go mod vendor

make build

# Fix folders without write permissions preventing which fails repeating builds:
Expand Down