2012-09-06 22:20:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pass < Formula
|
|
|
|
homepage 'http://zx2c4.com/projects/password-store'
|
2012-10-18 14:49:05 +00:00
|
|
|
url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.4.2.tar.xz'
|
2013-03-05 04:54:26 +00:00
|
|
|
sha256 'a10a8016a3d6bb32891a9a4086ac0a049587db1a55c1ac3b431c66189bc1a302'
|
|
|
|
|
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-04 06:53:35 +00:00
|
|
|
if build.head?
|
|
|
|
zsh_completion.install "src/completion/pass.zsh-completion" => "_pass"
|
|
|
|
else
|
|
|
|
zsh_completion.install "contrib/pass.zsh-completion" => "_pass"
|
|
|
|
end
|
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
|