2019-01-27 16:37:32 -02:00
|
|
|
# This file was generated by GoReleaser. DO NOT EDIT.
|
2017-07-16 15:06:32 -03:00
|
|
|
class Test < Formula
|
|
|
|
desc "Some desc"
|
|
|
|
homepage "https://google.com"
|
|
|
|
version "0.1.3"
|
2019-07-20 14:27:25 -03:00
|
|
|
bottle :unneeded
|
2019-06-10 10:35:19 -03:00
|
|
|
|
|
|
|
if OS.mac?
|
|
|
|
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz"
|
|
|
|
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68"
|
2020-11-16 09:16:50 -03:00
|
|
|
end
|
|
|
|
if OS.linux? && Hardware::CPU.intel?
|
|
|
|
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Linux_x86_64.tar.gz"
|
|
|
|
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67"
|
|
|
|
end
|
|
|
|
if OS.linux? && Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
|
|
|
|
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm6.tar.gz"
|
|
|
|
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67"
|
|
|
|
end
|
|
|
|
if OS.linux? && Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
|
|
|
|
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Arm64.tar.gz"
|
|
|
|
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c67"
|
2019-06-10 10:35:19 -03:00
|
|
|
end
|
2018-04-03 21:13:17 -03:00
|
|
|
|
2018-12-30 02:06:54 +00:00
|
|
|
devel do
|
|
|
|
url "https://github.com/caarlos0/test/releases/download/v0.1.3/test_Darwin_x86_64.tar.gz"
|
|
|
|
sha256 "1633f61598ab0791e213135923624eb342196b3494909c91899bcd0560f84c68"
|
|
|
|
end
|
|
|
|
|
2017-07-16 15:06:32 -03:00
|
|
|
depends_on "gtk+"
|
2017-11-13 17:49:45 -02:00
|
|
|
|
2017-07-16 15:06:32 -03:00
|
|
|
conflicts_with "svn"
|
|
|
|
|
|
|
|
def install
|
|
|
|
custom install script
|
|
|
|
another install script
|
|
|
|
end
|
|
|
|
|
2020-09-18 10:42:52 -03:00
|
|
|
def post_install
|
|
|
|
system "touch", "/tmp/foo"
|
|
|
|
end
|
|
|
|
|
2018-04-05 13:38:32 -07:00
|
|
|
def caveats; <<~EOS
|
2018-03-28 16:14:27 +02:00
|
|
|
Here are some caveats
|
|
|
|
EOS
|
2017-07-16 15:06:32 -03:00
|
|
|
end
|
|
|
|
|
|
|
|
plist_options :startup => false
|
|
|
|
|
2018-02-06 10:08:20 -08:00
|
|
|
def plist; <<~EOS
|
2017-07-16 15:06:32 -03:00
|
|
|
it works
|
2018-03-28 16:14:27 +02:00
|
|
|
EOS
|
2017-07-16 15:06:32 -03:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/foo -version"
|
|
|
|
end
|
|
|
|
end
|