Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move formulas into Formula folder and bump gomuks to v0.3.1 #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Formula/gomuks-dev.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
class GomuksDev < Formula
desc "Terminal based Matrix client written in Go"
homepage "https://maunium.net/go/gomuks"
url "https://github.com/tulir/gomuks/archive/e6a2c3ff85358c271e8b28888fc4b9c9f0585d07.tar.gz"
version "0.3.1-e6a2c3f"
sha256 "e215cf5d907f9af4cfd308de8b898d0eaf24cd4c65b93464411412f71b9b7b92"

livecheck do
skip "Unstable"
end

depends_on "go" => :build
depends_on "libolm"

def install
system "go", "build", *std_go_args, "-ldflags", "-s -w -X main.Tag=#{version} -X 'main.BuildTime=#{Time.now}'"
doc.install "README.md"
end

test do
assert_match "gomuks #{version.major_minor_patch}", shell_output("#{bin}/gomuks-dev --version").strip
end

# gomuks stores things in ~/Library/Caches/gomuks and ~/Library/Application Support/gomuks
end
9 changes: 7 additions & 2 deletions gomuks.rb → Formula/gomuks.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
class Gomuks < Formula
desc "Terminal based Matrix client written in Go"
homepage "https://maunium.net/go/gomuks"
url "https://github.com/tulir/gomuks/archive/v0.3.0.tar.gz"
sha256 "0710a63cc3ec9a4f525510497ba64aa94170498eb536411d089871f336d99ab4"
url "https://github.com/tulir/gomuks/archive/refs/tags/v0.3.1.tar.gz"
sha256 "e5212c416a84a5e8f46ab6b36cf9cfec36918930dbf7a155cce00570887600f7"
head "https://github.com/tulir/gomuks.git", branch: "master"

livecheck do
url :stable
end

depends_on "go" => :build
depends_on "libolm"
Expand Down
21 changes: 0 additions & 21 deletions gomuks-dev.rb

This file was deleted.

Loading