swaptop 1.0.0

This commit is contained in:
Andy Dixon
2026-10-07 12:27:15 +01:00
parent 5df14cf6fa
commit 27a486e577
2 changed files with 21 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
class Swaptop < Formula
desc "Htop-style view of which processes are using swap, and how"
homepage "https://github.com/andydixon/swaptop"
url "https://github.com/andydixon/swaptop/archive/refs/tags/v1.0.0.tar.gz"
sha256 "a6da1237452ad97435a7a9f9c95151069d3b7cf601de489d050103458ea19a1b"
license "GPL-3.0-or-later"
head "https://github.com/andydixon/swaptop.git", branch: "master"
depends_on "go" => :build
depends_on :linux
def install
system "go", "build", *std_go_args(ldflags: "-s -w -X main.version=#{version}")
man1.install "docs/swaptop.1"
end
test do
assert_match version.to_s, shell_output("#{bin}/swaptop --version")
end
end
+1
View File
@@ -4,4 +4,5 @@ Homebrew tap.
```sh ```sh
brew install andydixon/tap/mapsize brew install andydixon/tap/mapsize
brew install andydixon/tap/swaptop # Linux only
``` ```