2012-09-06 22:20:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pass < Formula
|
|
|
|
homepage 'http://zx2c4.com/projects/password-store'
|
2014-05-14 14:52:27 +00:00
|
|
|
url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.6.2.tar.xz'
|
|
|
|
sha256 '526c4a362f6b21ffbaa48fe9eed92f7c0af0be210f56160938fb1661a6f162b4'
|
2013-03-05 04:54:26 +00:00
|
|
|
|
2014-04-13 11:57:19 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-04-25 13:59:19 +00:00
|
|
|
sha1 "37c05776bfbb04a4fbfbed65e45a4fe62998f110" => :mavericks
|
|
|
|
sha1 "1af25c7c875801b174fb3f81ee8fdb6a2f07b0f8" => :mountain_lion
|
|
|
|
sha1 "a76cff03da8c62cd4cbabe35f62ad4fd97054d29" => :lion
|
2014-04-13 11:57:19 +00:00
|
|
|
end
|
|
|
|
|
2012-09-06 22:20:40 +00:00
|
|
|
head 'http://git.zx2c4.com/password-store', :using => :git
|
|
|
|
|
|
|
|
depends_on 'pwgen'
|
|
|
|
depends_on 'tree'
|
2012-09-14 03:33:47 +00:00
|
|
|
depends_on 'gnu-getopt'
|
2012-09-06 22:20:40 +00:00
|
|
|
depends_on 'gnupg2'
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "make DESTDIR=#{prefix} PREFIX=/ install"
|
2014-04-13 11:47:25 +00:00
|
|
|
share.install "contrib"
|
|
|
|
zsh_completion.install "src/completion/pass.zsh-completion" => "_pass"
|
2014-04-21 00:45:52 +00:00
|
|
|
bash_completion.install "src/completion/pass.bash-completion" => "password-store"
|
2012-09-06 22:20:40 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2012-09-22 16:57:58 +00:00
|
|
|
system "#{bin}/pass", "--version"
|
2012-09-14 03:33:47 +00:00
|
|
|
end
|
2012-09-06 22:20:40 +00:00
|
|
|
end
|