|
| 1 | +# typed: false |
| 2 | +# frozen_string_literal: true |
| 3 | + |
| 4 | +# This file was generated by GoReleaser. DO NOT EDIT. |
| 5 | +class SpicedbAT1391 < Formula |
| 6 | + desc "Google Zanzibar-inspired permissions database for fine-grained access control" |
| 7 | + homepage "https://github.com/authzed/spicedb" |
| 8 | + version "1.39.1" |
| 9 | + license "Apache-2.0" |
| 10 | + |
| 11 | + depends_on "go" => :build |
| 12 | + |
| 13 | + on_macos do |
| 14 | + on_intel do |
| 15 | + url "https://github.com/authzed/spicedb/releases/download/v1.39.1/spicedb_1.39.1_darwin_amd64.tar.gz" |
| 16 | + sha256 "20f95950da6e9390dfeb26f084a369671cd1223c02c0b544536b922836ed657e" |
| 17 | + |
| 18 | + def install |
| 19 | + if build.head? |
| 20 | + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" |
| 21 | + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" |
| 22 | + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" |
| 23 | + end |
| 24 | + bin.install "spicedb" |
| 25 | + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) |
| 26 | + end |
| 27 | + end |
| 28 | + on_arm do |
| 29 | + url "https://github.com/authzed/spicedb/releases/download/v1.39.1/spicedb_1.39.1_darwin_arm64.tar.gz" |
| 30 | + sha256 "9692dbdd50d24dacad3a3b4461458125ca04995b19930d2141c532fa4b8650a7" |
| 31 | + |
| 32 | + def install |
| 33 | + if build.head? |
| 34 | + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" |
| 35 | + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" |
| 36 | + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" |
| 37 | + end |
| 38 | + bin.install "spicedb" |
| 39 | + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) |
| 40 | + end |
| 41 | + end |
| 42 | + end |
| 43 | + |
| 44 | + on_linux do |
| 45 | + on_intel do |
| 46 | + if Hardware::CPU.is_64_bit? |
| 47 | + url "https://github.com/authzed/spicedb/releases/download/v1.39.1/spicedb_1.39.1_linux_amd64.tar.gz" |
| 48 | + sha256 "6cb16ab3fd496ce9fb78728da4dcb30dbac93c6f54ffcd0b39b19bbe7de88438" |
| 49 | + |
| 50 | + def install |
| 51 | + if build.head? |
| 52 | + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" |
| 53 | + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" |
| 54 | + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" |
| 55 | + end |
| 56 | + bin.install "spicedb" |
| 57 | + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) |
| 58 | + end |
| 59 | + end |
| 60 | + end |
| 61 | + on_arm do |
| 62 | + if Hardware::CPU.is_64_bit? |
| 63 | + url "https://github.com/authzed/spicedb/releases/download/v1.39.1/spicedb_1.39.1_linux_arm64.tar.gz" |
| 64 | + sha256 "1b0f6e7d8257f44d08fb4a1f1e47bfd27c742c4f3cad36f0e11a4ae86913cfcc" |
| 65 | + |
| 66 | + def install |
| 67 | + if build.head? |
| 68 | + versionVar = "github.com/jzelinskie/cobrautil/v2.Version" |
| 69 | + versionCmd = "$(git describe --always --abbrev=7 --dirty --tags)" |
| 70 | + system "go build --ldflags '-s -w -X #{versionVar}=#{versionCmd}' ./cmd/spicedb" |
| 71 | + end |
| 72 | + bin.install "spicedb" |
| 73 | + generate_completions_from_executable(bin/"spicedb", "completion", shells: [:bash, :zsh, :fish]) |
| 74 | + end |
| 75 | + end |
| 76 | + end |
| 77 | + end |
| 78 | + |
| 79 | + head "https://github.com/authzed/spicedb.git", :branch => "main" |
| 80 | + |
| 81 | + test do |
| 82 | + system "#{bin}/spicedb version" |
| 83 | + end |
| 84 | +end |
0 commit comments