void-packages/srcpkgs/go-ipfs/template
2021-03-24 12:36:29 -03:00

34 lines
925 B
Bash

# Template file for 'go-ipfs'
pkgname=go-ipfs
version=0.8.0
revision=1
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.7.1"
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://github.com/ipfs/go-ipfs/archive/v${version}.tar.gz"
checksum=cc1170058ad5cd9ffcfb6b642a65c40bd8210b308c82bef1c47f0136ee370c23
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
}