2012-09-06 22:20:40 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pass < Formula
|
|
|
|
homepage 'http://zx2c4.com/projects/password-store'
|
2012-09-22 16:57:58 +00:00
|
|
|
url 'http://git.zx2c4.com/password-store/snapshot/password-store-1.4.tar.xz'
|
|
|
|
sha256 '2e94b0078abdf4673f3c22bde048776a3c12776b1bc98c22e8fb6e684b0b4a9e'
|
2012-09-06 22:20:40 +00:00
|
|
|
head 'http://git.zx2c4.com/password-store', :using => :git
|
|
|
|
|
|
|
|
depends_on 'xz' => :build
|
|
|
|
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
|
2012-09-22 16:57:58 +00:00
|
|
|
inreplace "contrib/pass.bash-completion", "gpg ", "gpg2 "
|
2012-09-06 22:20:40 +00:00
|
|
|
system "make DESTDIR=#{prefix} PREFIX=/ install"
|
|
|
|
end
|
|
|
|
|
2012-09-14 03:33:47 +00:00
|
|
|
def test
|
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
|