Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Created January 12, 2021 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdsmith/22f7cb4644ce721237959a6b34c0faf0 to your computer and use it in GitHub Desktop.
Save tdsmith/22f7cb4644ce721237959a6b34c0faf0 to your computer and use it in GitHub Desktop.
# https://aur.archlinux.org/packages/goredo/
class Goredo < Formula
desc "Go implementation of djb's redo, a Makefile replacement that sucks less"
homepage "http://www.goredo.cypherpunks.ru/"
url "http://www.goredo.cypherpunks.ru/download/goredo-0.11.0.tar.zst"
version "0.11.0"
sha256 "4608B75BC8A3DFB62EF305B5EED0F4B28AD39F64AE46BACEEA8100D90A8666F9"
license "GPL3"
depends_on "go" => :build
depends_on "zstd" => :build
def install
goredo_prefix = "goredo-#{version}"
system "tar", "--use-compress-program", "unzstd", "-xvf", "#{goredo_prefix}.tar.zst"
cd goredo_prefix do
ENV["GOPATH"] = Pathname.pwd
system "go", "build", *std_go_args, "go.cypherpunks.ru/goredo"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment