# Template file for 'go-ipfs'
pkgname=go-ipfs
version=0.3.11
revision=2
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 <chris@the-brannons.com>"
license="MIT"
homepage="https://ipfs.io"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=1806fea22ccee0c8005fffdd6391531c8df44f23571b3e9539f6fa3a0d4efb01

do_build() {
	GO15VENDOREXPERIMENT=0 go get -x ${go_package}
}

post_install() {
	vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
	vlicense LICENSE
	vdoc README.md
}
