-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstencil.rb
66 lines (56 loc) · 1.89 KB
/
stencil.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Stencil < Formula
desc "A modern living-template engine for evolving repositories"
homepage "https://stencil.rgst.io"
version "2.1.0"
license "Apache-2.0"
depends_on "git" if OS.mac?
on_macos do
if Hardware::CPU.intel?
url "https://github.com/rgst-io/stencil/releases/download/v2.1.0/stencil_2.1.0_darwin_amd64.tar.gz"
sha256 "b4f492e768a514197e129979249331831153f7634626d8c1dee21b4f72130693"
def install
bin.install "stencil"
end
end
if Hardware::CPU.arm?
url "https://github.com/rgst-io/stencil/releases/download/v2.1.0/stencil_2.1.0_darwin_arm64.tar.gz"
sha256 "260e2af18a40ed9f4d71f8dd09a40e713b439114daf6e43e02b065893601a259"
def install
bin.install "stencil"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/rgst-io/stencil/releases/download/v2.1.0/stencil_2.1.0_linux_amd64.tar.gz"
sha256 "3789662bbff49edf24db9906023f18b69307802cee58b1cf2bf47ad4701ecd32"
def install
bin.install "stencil"
end
end
end
if Hardware::CPU.arm?
if !Hardware::CPU.is_64_bit?
url "https://github.com/rgst-io/stencil/releases/download/v2.1.0/stencil_2.1.0_linux_armv6.tar.gz"
sha256 "2c35ec1afc0950fb7c433ac9bc1ddee54749f5a5903697bd8c1df23a54094e08"
def install
bin.install "stencil"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/rgst-io/stencil/releases/download/v2.1.0/stencil_2.1.0_linux_arm64.tar.gz"
sha256 "99270ff5c254fc3eaff78873740e8a1e51a51c3c12603c080f0c4e28f2d5f526"
def install
bin.install "stencil"
end
end
end
end
conflicts_with "stencil"
end