-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgo-ogc.rb
56 lines (48 loc) · 1.56 KB
/
go-ogc.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 GoOgc < Formula
desc "Generate OGC API - Tiles metadata from exiting XYZ tilesets."
homepage "https://github.com/planetlabs/go-ogc"
version "0.13.0"
license "Apache-2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/planetlabs/go-ogc/releases/download/v0.13.0/go-ogc-darwin-amd64.tar.gz"
sha256 "8d36317cde79cf4351ab2059234d9b0e9b48da7b53833eaffec4ae98169d0961"
def install
bin.install "xyz2ogc"
end
end
if Hardware::CPU.arm?
url "https://github.com/planetlabs/go-ogc/releases/download/v0.13.0/go-ogc-darwin-arm64.tar.gz"
sha256 "1d67a872892958b06ae788a213036d388d9cad06c50f9d486136aad7341df7cb"
def install
bin.install "xyz2ogc"
end
end
end
on_linux do
if Hardware::CPU.intel?
if Hardware::CPU.is_64_bit?
url "https://github.com/planetlabs/go-ogc/releases/download/v0.13.0/go-ogc-linux-amd64.tar.gz"
sha256 "eb2bf6a3e8a040bf40d66c10da1f31e86d763f6bca681a84a1232ac0549a9f3a"
def install
bin.install "xyz2ogc"
end
end
end
if Hardware::CPU.arm?
if Hardware::CPU.is_64_bit?
url "https://github.com/planetlabs/go-ogc/releases/download/v0.13.0/go-ogc-linux-arm64.tar.gz"
sha256 "8fdb904b11162ab4575043908d03a1729189110443de0a91bc192904e08cbe3d"
def install
bin.install "xyz2ogc"
end
end
end
end
test do
system "#{bin}/xyz2ogc version"
end
end