dbb1ffa99f
* fs-repo-migrations: update to 1.1.0. * go-ipfs: update to 0.4.3.
37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'go-ipfs'
|
|
pkgname=go-ipfs
|
|
version=0.4.3
|
|
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"
|
|
depends="fs-repo-migrations>=1.1.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
|
|
http://the-brannons.com/ipfs-gx-deps-${version}.tar.xz"
|
|
checksum="5f9219c598cda05b5842be1266192fd174557f1683b8ddf629116cbea5a00f5b
|
|
4dee169a2df49d21c8ce81f43b6a38c216a007084e8b70db0caa8faaa4371a2b"
|
|
|
|
do_build() {
|
|
local path="${GOPATH}/src/${go_import_path}"
|
|
mkdir -p "$(dirname ${path})"
|
|
ln -fs $PWD "${path}"
|
|
# I fetch all the deps with gx locally and bundle them in a tarball,
|
|
# so that we don't have to deal with packaging gx.
|
|
ln -s "${wrksrc}/ipfs-gx-deps-${version}/src/gx" "${GOPATH}/src"
|
|
cd cmd/ipfs
|
|
go build
|
|
}
|
|
|
|
do_install() {
|
|
vbin cmd/ipfs/ipfs
|
|
vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
|
|
vlicense LICENSE
|
|
vdoc README.md
|
|
vdoc CHANGELOG.md
|
|
}
|