# Template file for 'go-ipfs' pkgname=go-ipfs version=0.7.0 revision=2 build_style=go go_import_path="github.com/ipfs/go-ipfs" go_package="${go_import_path}/cmd/ipfs" hostmakedepends="git" depends="fs-repo-migrations>=1.6.4" short_desc="Global versioned P2P merkle DAG file system" maintainer="Christopher Brannon " license="MIT, Apache-2.0" homepage="https://ipfs.io" changelog="https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md" distfiles="https://github.com/ipfs/go-ipfs/archive/v${version}.tar.gz" checksum=152986ebb30657ab706bee708fbe929114f5e8c39fbe602e3bbec93fe74c9123 system_accounts="_ipfs" make_dirs="/var/lib/ipfs 0700 _ipfs _ipfs" _ipfs_homedir="/var/lib/ipfs" pre_build() { if [ "$CROSS_BUILD" ]; then export CGO_ENABLED=0 fi } post_install() { vcompletion misc/completion/ipfs-completion.bash bash ipfs vlicense LICENSE-MIT vdoc README.md vdoc CHANGELOG.md vsv ipfs }