# Template file for 'go-ipfs' pkgname=go-ipfs version=0.4.1 revision=2 create_wrksrc=yes build_wrksrc=${pkgname}-${version} build_style=go go_import_path="github.com/ipfs/${pkgname}" go_package="${go_import_path}/cmd/ipfs" short_desc="Global versioned P2P merkle DAG file system" maintainer="Christopher Brannon " license="MIT" homepage="https://ipfs.io" distfiles="https://${go_import_path}/archive/v${version}.tar.gz http://the-brannons.com/ipfs-gx-deps-20160427.tar.xz" checksum="b6bcab4d9da11339523cd178165c24f7784abda9dd820a8f3490c78da67be786 3c6d99f4847eba3d3956d1b2f2eb07e7e0fe108d6711f5353bbf3aaf059e4dde" do_build() { local path="${GOPATH}/src/${go_import_path}" mkdir -p "$(dirname ${path})" ln -fs $PWD "${path}" ln -s "${wrksrc}/ipfs-gx-deps-20160427/src/gx" "${GOPATH}/src" cd cmd/ipfs go build } do_install() { vbin cmd/ipfs/ipfs vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs vlicense LICENSE vdoc README.md vdoc CHANGELOG.md }