Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Submitting formula to Homebrew #43

Open
stvnwn opened this issue Feb 21, 2023 · 1 comment
Open

Submitting formula to Homebrew #43

stvnwn opened this issue Feb 21, 2023 · 1 comment

Comments

@stvnwn
Copy link

stvnwn commented Feb 21, 2023

Would y'all mind if I submitted a Homebrew formula for passage to homebrew/core? I've written a basic formula here:

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
@klaaspieter
Copy link

Last I checked the maintainer isn't allowed to submit their own software to Homebrew. So I would say :shipit: .

klaaspieter added a commit to klaaspieter/homebrew-formula that referenced this issue Mar 7, 2023
I don't really want this in my own tap but since it's not available yet
this is the easiest way to do it.

Ideally I remove it when
FiloSottile/passage#43 is merged.
maertsen added a commit to maertsen/homebrew-formula that referenced this issue Aug 22, 2023
jcsims added a commit to jcsims/homebrew-formula that referenced this issue Jun 20, 2024
This isn't packaged in the main homebrew repository yet, but someone proposed a
formula in FiloSottile/passage#43 that we can borrow
for now.
toothbrush added a commit to toothbrush/homebrew-toothbrush that referenced this issue Jan 2, 2025
This isn't packaged in the main homebrew repository yet, but someone
proposed a formula in FiloSottile/passage#43 that we can borrow for now.

* Formula/passage.rb (Passage): New formula.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants