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
# Homebrew formula for skillpack.
#
# Ships the prebuilt binaries attached to the GitHub Release (built by the
# Release workflow). To use it as a tap:
#
# brew tap nordicnode/skillpack https://github.com/nordicnode/skillpack
# brew install skillpack
#
# Or install this single file directly:
#
# brew install --formula homebrew/skillpack.rb
#
# Version/URL bumps: on each release update `version` and the `vX.Y.Z` tag in
# the `url`s below. The `sha256` pins are per-binary and must be regenerated
# after each release (they cannot be computed until the binaries exist):
#
# python3 scripts/update_homebrew_sha256.py
#
# The release-plz sync step strips the `sha256` lines when it bumps the
# version, so a stale checksum can never ship; re-pin with the script above
# once the release is published.
desc
homepage
license
version
on_macos do
if Hardware::CPU.arm?
url
# TODO: re-pin sha256 via scripts/update_homebrew_sha256.py after the release is published
else
url
# TODO: re-pin sha256 via scripts/update_homebrew_sha256.py after the release is published
end
end
on_linux do
if Hardware::CPU.arm?
url
# TODO: re-pin sha256 via scripts/update_homebrew_sha256.py after the release is published
else
# Static musl build - no glibc dependency.
url
# TODO: re-pin sha256 via scripts/update_homebrew_sha256.py after the release is published
end
end
bin.install
end
test do
system ,
end
end