go-ipfs: use gx
This commit is contained in:
parent
f5fd34f53d
commit
9b1e9c091c
1 changed files with 7 additions and 16 deletions
|
@ -1,10 +1,11 @@
|
||||||
# Template file for 'go-ipfs'
|
# Template file for 'go-ipfs'
|
||||||
pkgname=go-ipfs
|
pkgname=go-ipfs
|
||||||
version=0.4.10
|
version=0.4.10
|
||||||
revision=2
|
revision=3
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
build_wrksrc=${pkgname}-${version}
|
build_wrksrc=${pkgname}-${version}
|
||||||
build_style=go
|
build_style=go
|
||||||
|
hostmakedepends="gx-go"
|
||||||
go_import_path="github.com/ipfs/${pkgname}"
|
go_import_path="github.com/ipfs/${pkgname}"
|
||||||
go_package="${go_import_path}/cmd/ipfs"
|
go_package="${go_import_path}/cmd/ipfs"
|
||||||
depends="fs-repo-migrations>=1.2.0"
|
depends="fs-repo-migrations>=1.2.0"
|
||||||
|
@ -12,24 +13,14 @@ short_desc="Global versioned P2P merkle DAG file system"
|
||||||
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
maintainer="Christopher Brannon <chris@the-brannons.com>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="https://ipfs.io"
|
homepage="https://ipfs.io"
|
||||||
distfiles="https://${go_import_path}/archive/v${version}.tar.gz
|
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
|
||||||
http://the-brannons.com/ipfs-gx-deps-${version}.tar.xz"
|
checksum="d996f04b86c933626f71c00ba23f87e807d932899625703d7f0cf43133027e4d"
|
||||||
checksum="d996f04b86c933626f71c00ba23f87e807d932899625703d7f0cf43133027e4d
|
|
||||||
526c1bd024f77e7100ca8cc43fb9f347cc053dcddb6917c2e4f5cdf854ae8678"
|
|
||||||
|
|
||||||
do_build() {
|
pre_build() {
|
||||||
local path="${GOPATH}/src/${go_import_path}"
|
gx install
|
||||||
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() {
|
post_install() {
|
||||||
vbin cmd/ipfs/ipfs
|
|
||||||
vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
|
vinstall misc/completion/ipfs-completion.bash 644 usr/share/bash-completion/completions ipfs
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
vdoc README.md
|
vdoc README.md
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue