-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add passage formula from FiloSottile/passage#43
- Loading branch information
0 parents
commit 4514233
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class Passage < Formula | ||
desc "Fork of password-store that uses age instead of GnuPG" | ||
homepage "https://github.com/FiloSottile/passage" | ||
url "https://github.com/FiloSottile/passage/archive/1.7.4a1.tar.gz" | ||
version "1.7.4a1" | ||
sha256 "0705ff409d4a6160ade347e63be623170da023ec199116dac83b406a18f7e0d7" | ||
license "GPL-2.0-or-later" | ||
head "https://github.com/FiloSottile/passage.git", branch: "main" | ||
|
||
depends_on "age" | ||
depends_on "gnu-getopt" | ||
depends_on "qrencode" | ||
depends_on "tree" | ||
|
||
def install | ||
system "make", "PREFIX=#{prefix}", "WITH_ALLCOMP=yes", "BASHCOMPDIR=#{bash_completion}", | ||
"ZSHCOMPDIR=#{zsh_completion}", "FISHCOMPDIR=#{fish_completion}", "install" | ||
inreplace "#{bin}/passage", | ||
/^SYSTEM_EXTENSION_DIR=.*$/, | ||
"SYSTEM_EXTENSION_DIR=\"#{HOMEBREW_PREFIX}/lib/passage/extensions\"" | ||
end | ||
|
||
test do | ||
(testpath/".passage").mkdir | ||
system Formula["age"].opt_bin/"age-keygen", "-o", ".passage/identities" | ||
system bin/"passage", "generate", "foo.bar" | ||
assert_predicate testpath/".passage/store/foo.bar.age", :exist? | ||
end | ||
end |