1
1
class Gopass < Formula
2
2
desc "The slightly more awesome Standard Unix Password Manager for Teams"
3
3
homepage "https://github.com/gopasspw/gopass"
4
- url "https://github.com/gopasspw/gopass/releases/download/v1.9.2 /gopass-1.9.2 .tar.gz"
5
- sha256 "1017264678d3a2cdc862fc81e3829f390facce6c4a334cb314192ff321837bf5 "
4
+ url "https://github.com/gopasspw/gopass/releases/download/v1.10.0 /gopass-1.10.0 .tar.gz"
5
+ sha256 "ed9709b4499659dd015839ebe4638ac0148ed3b5d4be0a8c300495a133799e5e "
6
6
license "MIT"
7
- revision 2
8
7
head "https://github.com/gopasspw/gopass.git"
9
8
10
9
bottle do
@@ -19,11 +18,18 @@ class Gopass < Formula
19
18
depends_on "terminal-notifier"
20
19
21
20
def install
22
- ENV [ "PREFIX" ] = prefix
23
- system "make" , "install"
21
+ ENV [ "GOBIN" ] = bin
24
22
25
- output = Utils . safe_popen_read ( "#{ bin } /gopass" , "completion" , "bash" )
26
- ( bash_completion /"gopass-completion" ) . write output
23
+ system "go" , "install" , "-ldflags" , "-s -w -X main.version=#{ version } " , "./..."
24
+
25
+ output = Utils . safe_popen_read ( { "SHELL" => "bash" } , "#{ bin } /gopass" , "completion" , "bash" )
26
+ ( bash_completion /"gopass" ) . write output
27
+
28
+ output = Utils . safe_popen_read ( { "SHELL" => "zsh" } , "#{ bin } /gopass" , "completion" , "zsh" )
29
+ ( zsh_completion /"_gopass" ) . write output
30
+
31
+ output = Utils . safe_popen_read ( { "SHELL" => "fish" } , "#{ bin } /gopass" , "completion" , "fish" )
32
+ ( fish_completion /"gopass.fish" ) . write output
27
33
end
28
34
29
35
test do
@@ -43,9 +49,9 @@ def install
43
49
begin
44
50
system Formula [ "gnupg" ] . opt_bin /"gpg" , "--batch" , "--gen-key" , "batch.gpg"
45
51
46
- system bin /"gopass" , "init" , "--rcs" , "noop" , "testing@foo.bar"
52
+ system bin /"gopass" , "init" , "--path" , testpath , "noop" , "testing@foo.bar"
47
53
system bin /"gopass" , "generate" , "Email/other@foo.bar" , "15"
48
- assert_predicate testpath /".password-store/ Email/other@foo.bar.gpg" , :exist?
54
+ assert_predicate testpath /"Email/other@foo.bar.gpg" , :exist?
49
55
ensure
50
56
system Formula [ "gnupg" ] . opt_bin /"gpgconf" , "--kill" , "gpg-agent"
51
57
system Formula [ "gnupg" ] . opt_bin /"gpgconf" , "--homedir" , "keyrings/live" ,
0 commit comments