fix head and makefile

This commit is contained in:
David Newhall II 2019-07-14 23:03:10 -07:00
parent 453f9fd251
commit 9f18307cfc
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# This Make# This Makefile is written as generic as possible.
# This Makefile is written as generic as possible.
# Setting the variables in .metadata.sh and creating the paths in the repo makes this work.
# See more: https://github.com/golift/application-builder
@ -232,6 +232,7 @@ $(BINARY).rb: v$(VERSION).tar.gz.sha256 init/homebrew/$(FORMULA).rb.tmpl
-e "s%{{URL}}%$(URL)%g" \
-e "s%{{IMPORT_PATH}}%$(IMPORT_PATH)%g" \
-e "s%{{SOURCE_PATH}}%$(SOURCE_PATH)%g" \
-e "s%{{SOURCE_URL}}%$(SOURCE_URL)%g" \
-e "s%{{CONFIG_FILE}}%$(CONFIG_FILE)%g" \
-e "s%{{Class}}%$(shell echo $(BINARY) | perl -pe 's/(?:\b|-)(\p{Ll})/\u$$1/g')%g" \
init/homebrew/$(FORMULA).rb.tmpl | tee $(BINARY).rb

View File

@ -7,7 +7,7 @@ class {{Class}} < Formula
homepage "{{URL}}"
url "{{SOURCE_PATH}}"
sha256 "{{SHA256}}"
head "{{URL}}"
head "{{SOURCE_URL}}"
depends_on "go" => :build
depends_on "dep"