ipfs-cluster/snap/snapcraft.yaml

36 lines
965 B
YAML
Raw Normal View History

name: ipfs-cluster
version: master
summary: Collective pinning and composition for IPFS
description: |
ipfs-cluster allows to replicate content (by pinning) in multiple IPFS nodes.
confinement: strict
apps:
service:
command: ipfs-cluster-service
plugs: [home, network, network-bind]
aliases: [ipfs-cluster-service]
ctl:
command: ipfs-cluster-ctl
plugs: [network]
aliases: [ipfs-cluster-ctl]
parts:
ipfs-cluster:
source: .
plugin: nil
build-packages: [make, wget]
prepare: |
mkdir -p ../go/src/github.com/ipfs/ipfs-cluster
cp -R . ../go/src/github.com/ipfs/ipfs-cluster
build: |
env GOPATH=$(pwd)/../go make -C ../go/src/github.com/ipfs/ipfs-cluster install
install: |
mkdir $SNAPCRAFT_PART_INSTALL/bin
mv ../go/bin/ipfs-cluster-service $SNAPCRAFT_PART_INSTALL/bin/
mv ../go/bin/ipfs-cluster-ctl $SNAPCRAFT_PART_INSTALL/bin/
after: [go]
go:
source-tag: go1.9.2