Homebrew settings
@@ -39,10 +39,46 @@ brew:
github:
owner: justwatchcom
name: homebrew-gopass
+ caveats: |
+ Gopass has been installed, have fun!
+ If upgrading from `pass`, everything should work as expected.
+ If installing from scratch, you need to either initialize a new repository now...
+ gopass init
+ ...or clone one from a source:
+ gopass clone git@code.example.com:example/pass.git
+ In order to use the great autocompletion features (they're helpful with gopass),
+ please make sure you have autocompletion for homebrew enabled:
+ https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
+ More information:
+ https://www.justwatch.com/gopass
+ https://github.com/justwatchcom/gopass/README.md
homepage: "https://www.justwatch.com/gopass/"
+ description: "The slightly more awesome Standard Unix Password Manager for Teams."
+ build_dependencies:
+ - go
dependencies:
- git
- - gnupg2
+ install: |
+ ENV["GOPATH"] = buildpath
+ (buildpath/"src/github.com/justwatchcom/gopass").install buildpath.children
+
+ cd "src/github.com/justwatchcom/gopass" do
+ ENV["PREFIX"] = prefix
+ system "make", "install"
+ end
+
+ system bin/"gopass completion bash > bash_completion.bash"
+ system bin/"gopass completion zsh > zsh_completion.zsh"
+ bash_completion.install "bash_completion.bash"
+ zsh_completion.install "zsh_completion.zsh"
+ test: |
+ assert_match version.to_s, shell_output("#{bin}/gopass version")
+ special: |
+ option "with-gnupg21", "Depend on gnupg21 instead of gnupg2"
+ option "with-gnupg1", "Depend on gnupg1 instead of gnupg2"
+ depends_on "gnupg2" => :run if build.without?("gnupg1") && build.without?("gnupg21")
+ depends_on "gnupg" => :run if build.with?("gnupg1")
+ depends_on "gnupg21" => :run if build.with?("gnupg21")
fpm:
vendor: JustWatch
homepage: "https://www.justwatch.com/gopass/"
