Skip to content

Commit

Permalink
ipfs: Update from 0.4.19 to 0.4.20
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Apr 17, 2019
1 parent 8941f35 commit 4976934
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 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="Leonid Plyushch <[email protected]> @xeffyr"
TERMUX_PKG_VERSION=0.4.19
TERMUX_PKG_VERSION=0.4.20
TERMUX_PKG_REVISION=1
TERMUX_PKG_SHA256=de0540e6d10aebbef602dc70da39c666952f980ceaccbd4aafb1578301706139
TERMUX_PKG_SHA256=ddaeb8b8747efc81b560bb9c3e751c4277b089f3cd113e6001d1392993fb0fd0
TERMUX_PKG_SRCURL=https://github.com/ipfs/go-ipfs/archive/v${TERMUX_PKG_VERSION}.tar.gz

termux_step_make() {
Expand All @@ -14,18 +14,22 @@ termux_step_make() {
export GOARCH=${TERMUX_ARCH}

if [ "${TERMUX_ARCH}" = "aarch64" ]; then
export GOARCH="arm64"
GOARCH="arm64"
elif [ "${TERMUX_ARCH}" = "i686" ]; then
export GOARCH="386"
GOARCH="386"
elif [ "${TERMUX_ARCH}" = "x86_64" ]; then
export GOARCH="amd64"
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"

make build

# Fix folders without write permissions preventing which fails repeating builds:
cd $TERMUX_PKG_BUILDDIR
find . -type d -exec chmod u+w {} \;
}

termux_step_make_install() {
Expand Down

0 comments on commit 4976934

Please sign in to comment.