void-packages/srcpkgs/go-ipfs/template

38 lines
1.2 KiB
Bash
Raw Normal View History

# Template file for 'go-ipfs'
pkgname=go-ipfs
2016-10-13 13:06:19 +02:00
version=0.4.4
2016-05-22 07:36:18 +02:00
revision=1
2016-04-27 17:31:00 +02:00
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"
2016-04-27 17:31:00 +02:00
distfiles="https://${go_import_path}/archive/v${version}.tar.gz
2016-05-22 07:36:18 +02:00
http://the-brannons.com/ipfs-gx-deps-${version}.tar.xz"
2016-10-13 13:06:19 +02:00
checksum="5cfcbe36ef57edad5db7388bcff21c9e9b1cf2208b7f46f8000e24824aebb687
694547c0e3c5cf1fc979f0e151dc27b8af903862175d3907c32217d51733888d"
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}"
2016-05-22 07:36:18 +02:00
# 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"
2016-04-27 17:31:00 +02:00
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
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
}