brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Formula.resource

Additional downloads can be defined as resources and accessed in the
install method. Resources can also be defined inside a stable, devel, or
head block. This mechanism replaces ad-hoc "subformula" classes.
<pre>resource "additional_files" do
  url "https://example.com/additional-stuff.tar.gz"
  sha256 "c6bc3f48ce8e797854c4b865f6a8ff969867bbcaebd648ae6fd825683e59fef2"
end</pre>

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/formula.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Formula-resource-for-pr


# Commit to git

git add Library/Homebrew/formula.rbgit commit -m "better docs for Formula.resource"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Formula-resource-for-pr

hub pull-request


# Celebrate!