-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsama-cli.rb
47 lines (40 loc) · 1.45 KB
/
sama-cli.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
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class SamaCli < Formula
desc "This is the Sama CLI, a command-line tool for using the Sama Data API."
homepage "https://github.com/Samasource/homebrew-formulas"
version "2.0.1"
on_macos do
if Hardware::CPU.arm?
url "http://github.com/Samasource/sama-cli/releases/download/v2.0.1/sama-cli_2.0.1_darwin_arm64.tar.gz"
sha256 "e5e2a795a4c604ed86781579f72767784fc78462ca042ac7fda9080447f60ee8"
def install
bin.install "sama"
end
end
if Hardware::CPU.intel?
url "http://github.com/Samasource/sama-cli/releases/download/v2.0.1/sama-cli_2.0.1_darwin_x86_64.tar.gz"
sha256 "fdeef62229cefcee87988fe74d7c42836334f9c2d7a96c7f9d98b6a7fa8417ed"
def install
bin.install "sama"
end
end
end
on_linux do
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "http://github.com/Samasource/sama-cli/releases/download/v2.0.1/sama-cli_2.0.1_linux_arm64.tar.gz"
sha256 "afca45a3b332c73284f65ff0b3b5dc578f38d62cac40da9f1ba0a73e3012e459"
def install
bin.install "sama"
end
end
if Hardware::CPU.intel?
url "http://github.com/Samasource/sama-cli/releases/download/v2.0.1/sama-cli_2.0.1_linux_x86_64.tar.gz"
sha256 "4d0e22e4a989eabed872880184f0d33011891019784dfd542f0b46a47b818b98"
def install
bin.install "sama"
end
end
end
end