-
Notifications
You must be signed in to change notification settings - Fork 24
/
ecfg.rb
20 lines (16 loc) · 699 Bytes
/
ecfg.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'fileutils'
class Ecfg < Formula
desc 'ecfg is a small library to manage encrypted secrets using asymmetric encryption.'
homepage 'https://github.com/Shopify/ecfg'
url 'https://github.com/Shopify/ecfg/archive/0.3.1.tar.gz'
sha256 'a7c3659fc7b9fcba52f9843666f5b47f0231b104eb352a26ce0863dfcb931424'
depends_on 'go' => :build
def install
mkdir_p(buildpath/'src/github.com/Shopify')
ln_sf('../../..', buildpath/'src/github.com/Shopify/ecfg')
system('env', "GOPATH=#{buildpath}", 'make', 'build/bin/darwin-amd64')
bin.install('build/bin/darwin-amd64' => 'ecfg')
man1.install(Dir[buildpath/'man/man1/*'])
man5.install(Dir[buildpath/'man/man5/*'])
end
end