-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Needs bump to be amended to be able to bump the right formula
- Loading branch information
Showing
5 changed files
with
53 additions
and
6 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,14 @@ | ||
on: | ||
pull_request: | ||
paths: | ||
- pkgm.rb | ||
|
||
jobs: | ||
smoke: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: Homebrew/actions/setup-homebrew@master | ||
- run: brew install --build-from-source ./pkgm.rb | ||
- run: brew test pkgm | ||
- run: brew audit pkgm |
File renamed without changes.
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Installing `pkgx` with Homebrew | ||
# pkgx Tap | ||
|
||
```sh | ||
$ brew install pkgxdev/made/pkgx | ||
brew install pkgxdev/made/pkgx || curl https://pkgx.sh | sh | ||
``` | ||
|
||
## Uninstall | ||
|
||
```sh | ||
brew uninstall pkgxdev/made/pkgx || sudo rm /usr/local/bin/pkg[xm] | ||
``` |
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,25 @@ | ||
class Pkgm < Formula | ||
desc "Install Anything" | ||
homepage "https://github.com/pkgxdev/pkgm" | ||
sha256 "981e92983199e4d6745f30777cbcb600457649e5a3a473ff489034cb769dc99e" | ||
url "https://github.com/pkgxdev/pkgm/releases/download/v0.3.0/pkgm-0.3.0.tgz" | ||
license "Apache-2.0" | ||
|
||
livecheck do | ||
url :stable | ||
strategy :github_latest | ||
end | ||
|
||
depends_on "deno" | ||
|
||
def install | ||
# use the brew deno rather than pkgx deno | ||
inreplace "pkgm", /pkgx deno.* run/, "deno run" | ||
|
||
bin.install("pkgm") | ||
end | ||
|
||
test do | ||
assert_equal shell_output("pkgm --version"), "pkgm #{version}" | ||
end | ||
end |
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