homebrew-core/Formula/pass.rb
2014-04-25 10:31:05 -05:00

32 lines
957 B
Ruby

require 'formula'
class Pass < Formula
homepage 'http://zx2c4.com/projects/password-store'
url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.6.1.tar.xz'
sha256 '3c154d556c53c76b1a0ccacdc108c34f1fdb4a36fab28a6d2f42f02184290881'
bottle do
cellar :any
sha1 "37c05776bfbb04a4fbfbed65e45a4fe62998f110" => :mavericks
sha1 "1af25c7c875801b174fb3f81ee8fdb6a2f07b0f8" => :mountain_lion
sha1 "a76cff03da8c62cd4cbabe35f62ad4fd97054d29" => :lion
end
head 'http://git.zx2c4.com/password-store', :using => :git
depends_on 'pwgen'
depends_on 'tree'
depends_on 'gnu-getopt'
depends_on 'gnupg2'
def install
system "make DESTDIR=#{prefix} PREFIX=/ install"
share.install "contrib"
zsh_completion.install "src/completion/pass.zsh-completion" => "_pass"
bash_completion.install "src/completion/pass.bash-completion" => "password-store"
end
test do
system "#{bin}/pass", "--version"
end
end