void-packages/srcpkgs/go-ipfs/template
2022-02-12 16:54:43 +01:00

33 lines
866 B
Bash

# Template file for 'go-ipfs'
pkgname=go-ipfs
version=0.11.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=e1558182bb6d67caa3e4e58dd73092e2eaf00611aedb9202f265479205e5edcb
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() {
vlicense LICENSE-MIT
vdoc README.md
vdoc CHANGELOG.md
vsv ipfs
}