Skip to content

Commit

Permalink
Add initial amfora formula
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld committed Sep 6, 2020
1 parent da88e0b commit 057e1bd
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Created by https://www.toptal.com/developers/gitignore/api/linux,homebrew
# Edit at https://www.toptal.com/developers/gitignore?templates=linux,homebrew

### Homebrew ###
Brewfile.lock.json

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# End of https://www.toptal.com/developers/gitignore/api/linux,homebrew
24 changes: 24 additions & 0 deletions Formula/amfora.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# frozen_string_literal: true

class Amfora < Formula
desc "A fancy terminal browser for the Gemini protocol."
homepage "https://github.com/makeworld-the-better-one/amfora"
url "https://github.com/makeworld-the-better-one/amfora/archive/v1.5.0.tar.gz"
sha256 "c8478b00155ad74712b957444b7afe025a74030907b77cca0903b6477f79843d"
license "GPL-3.0"
version "1.5.0"

head do
url "https://github.com/makeworld-the-better-one/amfora.git"
end

depends_on "go" => :build

def install
ENV["GO111MODULE"] = "on"
ENV["CGO_ENABLED"] = "0"
system "go", "mod", "download"
system "go", "build", "-o", "bin/amfora", "-ldflags=\"-s -w -X main.version=1.5.0 -X main.commit=922e7981a92cb7bf0d7b3baf1694d0fffe90d448 -X main.builtBy=official-brew-tap\""
bin.install "bin/amfora"
end
end

0 comments on commit 057e1bd

Please sign in to comment.