35 lines
973 B
Bash
35 lines
973 B
Bash
# Template file for 'go-ipfs'
|
|
pkgname=go-ipfs
|
|
version=0.4.19
|
|
revision=1
|
|
create_wrksrc=yes
|
|
build_wrksrc="${pkgname}-${version}"
|
|
build_style=go
|
|
go_import_path="github.com/ipfs/${pkgname}"
|
|
go_package="${go_import_path}/cmd/ipfs"
|
|
hostmakedepends="gx-go"
|
|
depends="fs-repo-migrations>=1.3.0"
|
|
short_desc="Global versioned P2P merkle DAG file system"
|
|
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
|
license="MIT"
|
|
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=de0540e6d10aebbef602dc70da39c666952f980ceaccbd4aafb1578301706139
|
|
|
|
pre_build() {
|
|
# Disable the dynamic plugin loader for now; breaks cross.
|
|
if [ "$CROSS_BUILD" ]; then
|
|
rm plugin/loader/load_linux.go
|
|
fi
|
|
|
|
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
|
|
}
|