Commit e85d7658 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Merge pull request #1582 from flyingP0tat0/patch-30

Add ipfs package
parents 5cc5ed51 76e8c0ec
require 'package'
class Ipfs < Package
description 'A peer-to-peer hypermedia protocol'
homepage 'https://ipfs.io'
version '0.4.13'
source_url 'https://github.com/ipfs/go-ipfs/archive/v0.4.13.tar.gz'
source_sha256 '9d5f2ef17a8bd4040fb4246c694034ec0ff323bc07d3f1469ce0877892695f31'
depends_on 'go' => :build
depends_on 'fuse'
def self.build
system 'mkdir -p ../src/github.com/ipfs/go-ipfs'
system 'cp -aT . ../src/github.com/ipfs/go-ipfs/'
system 'mv ../src .'
system 'export GOPATH=`pwd`; cd src/github.com/ipfs/go-ipfs; make build'
end
def self.install
Dir.chdir 'src/github.com/ipfs/go-ipfs' do
system "install -D -m 00755 cmd/ipfs/ipfs #{CREW_DEST_PREFIX}/bin/ipfs"
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment