void-packages/srcpkgs/go-ipfs/template
2020-10-02 14:42:32 -07:00

29 lines
848 B
Bash

# Template file for 'go-ipfs'
pkgname=go-ipfs
version=0.7.0
revision=1
build_style=go
go_import_path="github.com/ipfs/${pkgname}"
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 <chris@the-brannons.com>"
license="MIT, Apache-2.0"
homepage="https://ipfs.io"
changelog="https://github.com/ipfs/go-ipfs/blob/master/CHANGELOG.md"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=152986ebb30657ab706bee708fbe929114f5e8c39fbe602e3bbec93fe74c9123
pre_build() {
if [ "$CROSS_BUILD" ]; then
export CGO_ENABLED=0
fi
}
post_install() {
vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
vlicense LICENSE-MIT
vdoc README.md
vdoc CHANGELOG.md
}