2015-12-06 15:29:07 +01:00
|
|
|
# Template file for 'go-ipfs'
|
|
|
|
pkgname=go-ipfs
|
2016-04-27 17:31:00 +02:00
|
|
|
version=0.4.1
|
|
|
|
revision=1
|
|
|
|
create_wrksrc=yes
|
|
|
|
build_wrksrc=${pkgname}-${version}
|
2015-12-06 15:29:07 +01:00
|
|
|
build_style=go
|
|
|
|
go_import_path="github.com/ipfs/${pkgname}"
|
|
|
|
go_package="${go_import_path}/cmd/ipfs"
|
|
|
|
short_desc="Global versioned P2P merkle DAG file system"
|
|
|
|
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://ipfs.io"
|
2016-04-27 17:31:00 +02:00
|
|
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz
|
|
|
|
http://the-brannons.com/ipfs-gx-deps-20160427.tar.xz"
|
|
|
|
checksum="b6bcab4d9da11339523cd178165c24f7784abda9dd820a8f3490c78da67be786
|
|
|
|
3c6d99f4847eba3d3956d1b2f2eb07e7e0fe108d6711f5353bbf3aaf059e4dde"
|
2015-12-06 15:29:07 +01:00
|
|
|
|
2016-02-19 21:33:47 +01:00
|
|
|
do_build() {
|
2016-04-27 17:31:00 +02:00
|
|
|
local path="${GOPATH}/src/${go_import_path}"
|
|
|
|
mkdir -p "$(dirname ${path})"
|
|
|
|
ln -fs $PWD "${path}"
|
|
|
|
ln -s "${wrksrc}/ipfs-gx-deps-20160427/src/gx" "${GOPATH}/src"
|
|
|
|
cd cmd/ipfs
|
|
|
|
go build
|
2016-02-19 21:33:47 +01:00
|
|
|
}
|
|
|
|
|
2016-04-27 17:31:00 +02:00
|
|
|
do_install() {
|
|
|
|
vbin cmd/ipfs/ipfs
|
2015-12-06 15:29:07 +01:00
|
|
|
vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
|
|
|
|
vlicense LICENSE
|
|
|
|
vdoc README.md
|
2016-04-27 17:31:00 +02:00
|
|
|
vdoc CHANGELOG.md
|
2015-12-06 15:29:07 +01:00
|
|
|
}
|