void-packages/srcpkgs/go-ipfs/template
2018-05-14 21:55:13 +02:00

35 lines
994 B
Bash

# Template file for 'go-ipfs'
pkgname=go-ipfs
version=0.4.15
revision=1
create_wrksrc=yes
build_wrksrc=${pkgname}-${version}
build_style=go
hostmakedepends="gx-go"
go_import_path="github.com/ipfs/${pkgname}"
go_package="${go_import_path}/cmd/ipfs"
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"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=b7e58e86e6abaf97687a566747376f13d8b5dde8b51033e3ff17f0d7fa8d5232
pre_build() {
# Disable the dynamic plugin loader for now; breaks cross.
if [ "$CROSS_BUILD" ]; then
rm plugin/loader/load_linux.go
fi
echo "ipldgit github.com/ipfs/go-ipfs/plugin/plugins/git 0" >> plugin/loader/preload_list
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
}