# Template file for 'go-ipfs'
pkgname=go-ipfs
version=0.4.10
revision=3
create_wrksrc=yes
build_wrksrc=${pkgname}-${version}
build_style=go
hostmakedepends="gx-go"
go_import_path="github.com/ipfs/${pkgname}"
go_package="${go_import_path}/cmd/ipfs"
depends="fs-repo-migrations>=1.2.0"
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="d996f04b86c933626f71c00ba23f87e807d932899625703d7f0cf43133027e4d"

pre_build() {
	gx install
}

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