{"id":13512309,"url":"https://github.com/timsutton/brew-pkg","last_synced_at":"2025-06-18T18:06:50.103Z","repository":{"id":6275984,"uuid":"7509721","full_name":"timsutton/brew-pkg","owner":"timsutton","description":"Build OS X installer packages directly from Homebrew formulae","archived":false,"fork":false,"pushed_at":"2024-06-24T18:17:55.000Z","size":24,"stargazers_count":199,"open_issues_count":10,"forks_count":38,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-12T19:47:08.968Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timsutton.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-01-08T21:40:46.000Z","updated_at":"2025-05-07T18:03:50.000Z","dependencies_parsed_at":"2024-06-24T18:46:49.342Z","dependency_job_id":"b3995acd-fde7-48cf-972a-6c6e0878c034","html_url":"https://github.com/timsutton/brew-pkg","commit_stats":{"total_commits":34,"total_committers":6,"mean_commits":5.666666666666667,"dds":0.6470588235294117,"last_synced_commit":"157dbe8b4696db890517ec3b6bf0c9aa02aedd82"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/timsutton/brew-pkg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fbrew-pkg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fbrew-pkg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fbrew-pkg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fbrew-pkg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timsutton","download_url":"https://codeload.github.com/timsutton/brew-pkg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timsutton%2Fbrew-pkg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260606473,"owners_count":23035350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T03:01:42.965Z","updated_at":"2025-06-18T18:06:45.090Z","avatar_url":"https://github.com/timsutton.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# brew-pkg\n\nbrew-pkg is a Homebrew external command that builds an OS X installer package from a formula. The formula must first already be installed on the system.\n\n## Usage\n\nAssuming nginx is already installed:\n\n`brew pkg nginx`\n\u003ccode\u003e\u003cpre\u003e==\u003e Creating package staging root using Homebrew prefix /usr/local\n==\u003e Staging formula nginx\n==\u003e Plist found at homebrew.mxcl.nginx, staging for /Library/LaunchDaemons/homebrew.mxcl.nginx.plist\n==\u003e Building package nginx-1.2.6.pkg\u003c/pre\u003e\u003c/code\u003e\n\nIt can also automatically include the formula's dependencies:\n\n`brew pkg --with-deps --without-kegs ffmpeg`\n\u003ccode\u003e\u003cpre\u003e==\u003e Creating package staging root using Homebrew prefix /usr/local\n==\u003e Staging formula ffmpeg\n==\u003e Staging formula pkg-config\n==\u003e Staging formula texi2html\n==\u003e Staging formula yasm\n==\u003e Staging formula x264\n==\u003e Staging formula faac\n==\u003e Staging formula lame\n==\u003e Staging formula xvid\n==\u003e Building package ffmpeg-1.1.pkg\u003c/pre\u003e\u003c/code\u003e\n\nBy default behaviour brew pkg include all package kegs located in /usr/local/Cellar/packagename. If you need to exclude it, specify option --without-kegs\n\n## Installing it\n\nbrew-pkg is available from my [formulae tap](https://github.com/timsutton/homebrew-formulae). Add the tap:\n\n`brew tap timsutton/formulae`\n\nThen install as any other formula:\n\n`brew install brew-pkg`\n\n## Extras\n\nIf a formula has defined a launchd plist, brew-pkg will also install this to the package's root in `/Library/LaunchDaemons`.\n\nYou can also define a custom identifier prefix in the reverse-domain convention with the `--identifier-prefix` option, ie. `brew pkg --identifier-prefix org.nagios nrpe`. If there is a launchd plist defined, this same prefix is currently _not_ applied to the plist.\n\nYou can set the path to custom preinstall and postinstall scripts with the `--scripts` option which is just literally passed through to the `pkgbuild` command.  \nFor more information refer to `man pkgbuild` which explains that *`--scripts scripts_path` archive the entire contents of scripts-path as the package scripts. If this directory contains scripts named preinstall and/or postinstall, these will be run as the top-level scripts of the package [...]*.\n\n## License\n\nbrew-pkg is [MIT-licensed](https://github.com/timsutton/brew-pkg/blob/master/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimsutton%2Fbrew-pkg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimsutton%2Fbrew-pkg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimsutton%2Fbrew-pkg/lists"}