go-ipfs: update to 0.4.2. (#4216)

This commit is contained in:
Chris Brannon 2016-05-21 22:36:18 -07:00 committed by Juan RP
parent 2d0ce1fd31
commit 4d927f48eb
1 changed files with 8 additions and 6 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'go-ipfs' # Template file for 'go-ipfs'
pkgname=go-ipfs pkgname=go-ipfs
version=0.4.1 version=0.4.2
revision=2 revision=1
create_wrksrc=yes create_wrksrc=yes
build_wrksrc=${pkgname}-${version} build_wrksrc=${pkgname}-${version}
build_style=go build_style=go
@ -12,15 +12,17 @@ maintainer="Christopher Brannon <chris@the-brannons.com>"
license="MIT" license="MIT"
homepage="https://ipfs.io" homepage="https://ipfs.io"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz distfiles="https://${go_import_path}/archive/v${version}.tar.gz
http://the-brannons.com/ipfs-gx-deps-20160427.tar.xz" http://the-brannons.com/ipfs-gx-deps-${version}.tar.xz"
checksum="b6bcab4d9da11339523cd178165c24f7784abda9dd820a8f3490c78da67be786 checksum="ade066235006411e688c7be2087ad1fc43ca4291a95cecf208a53f6032b70a55
3c6d99f4847eba3d3956d1b2f2eb07e7e0fe108d6711f5353bbf3aaf059e4dde" 8df94a35069e38b841bc5f79a1e83d60188e42d83086b43f8b7de6b5fd5cf9bd"
do_build() { do_build() {
local path="${GOPATH}/src/${go_import_path}" local path="${GOPATH}/src/${go_import_path}"
mkdir -p "$(dirname ${path})" mkdir -p "$(dirname ${path})"
ln -fs $PWD "${path}" ln -fs $PWD "${path}"
ln -s "${wrksrc}/ipfs-gx-deps-20160427/src/gx" "${GOPATH}/src" # I fetch all the deps with gx locally and bundle them in a tarball,
# so that we don't have to deal with packaging gx.
ln -s "${wrksrc}/ipfs-gx-deps-${version}/src/gx" "${GOPATH}/src"
cd cmd/ipfs cd cmd/ipfs
go build go build
} }