Skip to content

Commit

Permalink
add xkcd support
Browse files Browse the repository at this point in the history
Signed-off-by: siddontang <siddontang@gmail.com>
  • Loading branch information
siddontang committed Dec 25, 2021
1 parent 7d73ad8 commit 4659128
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions xkcdsay.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Xkcdsay < Formula
desc "View the XKCD comics in the terminal"
homepage "https://github.com/siddontang/xkcdsay"
url "https://github.com/siddontang/xkcdsay/archive/refs/tags/v0.1.tar.gz"
sha256 "8152e2a55b0c8dba6a244d491d779fdb270389ef2228fc9670b2c08106ba6c34"
license "MIT"

depends_on "go" => :build

def install
system "go", "build", "-o", bin/"xkcdsay", "./cmd/xkcdsay/."
end

test do
system "#{bin}/xkcdsay"
end
end

0 comments on commit 4659128

Please sign in to comment.