cordless/cordless.rb_template

25 lines
725 B
Plaintext

class Cordless < Formula
desc "Discord, but in 1984"
homepage "https://github.com/Bios-Marcel/cordless"
url "https://github.com/Bios-Marcel/cordless/archive/$RELEASE_DATE.tar.gz"
version "$RELEASE_DATE"
sha256 "$TAR_HASH"
head "https://github.com/Bios-Marcel/cordless.git"
depends_on "go" => :build
depends_on "pngpaste" => :recommended
def install
ENV["GOPATH"] = HOMEBREW_CACHE/"go_cache"
(buildpath/"src/github.com/Bios-Marcel/cordless").install buildpath.children
cd "src/github.com/Bios-Marcel/cordless" do
system "go", "build", "-o", bin/"cordless"
prefix.install_metafiles
end
end
test do
system "true"
end
end