-
Notifications
You must be signed in to change notification settings - Fork 1
/
go-stac.rb
56 lines (48 loc) · 1.52 KB
/
go-stac.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class GoStac < Formula
desc "Utilities for working with Spatio-Temporal Asset Catalog (STAC) resources."
homepage "https://github.com/planetlabs/go-stac"
version "0.32.0"
license "Apache-2.0"
on_macos do
on_intel do
url "https://github.com/planetlabs/go-stac/releases/download/v0.32.0/go-stac-darwin-amd64.tar.gz"
sha256 "a767960bc5fe405d9daccf43358ea0c2f2b62b83d7b7f866638ec41b28ccc426"
def install
bin.install "stac"
end
end
on_arm do
url "https://github.com/planetlabs/go-stac/releases/download/v0.32.0/go-stac-darwin-arm64.tar.gz"
sha256 "de0221e19e1d44b4f41afc7e63a7526deac7d7c1025ad9f6d057224338687eb0"
def install
bin.install "stac"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/planetlabs/go-stac/releases/download/v0.32.0/go-stac-linux-amd64.tar.gz"
sha256 "b9de9b248b889582cb6a1957642a13a21d318b9964fb4c623720dba93711aa6d"
def install
bin.install "stac"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/planetlabs/go-stac/releases/download/v0.32.0/go-stac-linux-arm64.tar.gz"
sha256 "7f21ae4e27f6a7c6edb7ae84ad737ff1b2c78c03d3b6b976b0d93ae641815aaa"
def install
bin.install "stac"
end
end
end
end
test do
system "#{bin}/stac version"
end
end