11class Ipfs < Formula
22 desc "Peer-to-peer hypermedia protocol"
33 homepage "https://ipfs.tech/"
4- url "https://github.com/ipfs/kubo.git" ,
5- tag : "v0.33.0" ,
6- revision : "8b657380277b79299dffe42993ec4f7de4a759d3"
4+ url "https://github.com/ipfs/kubo/archive/refs/tags/v0.33.0.tar.gz"
5+ sha256 "f58da2d4e8552b0d76c95715ec86bf868216fdd539669ea060827a527458cc5f"
76 license all_of : [
87 "MIT" ,
98 any_of : [ "MIT" , "Apache-2.0" ] ,
@@ -16,28 +15,32 @@ class Ipfs < Formula
1615 end
1716
1817 bottle do
19- sha256 cellar : :any_skip_relocation , arm64_sequoia : "577d1bcd23f1dc68b98ad492f62d1df0a9630b65fa3fd4831f9822c367204d0d"
20- sha256 cellar : :any_skip_relocation , arm64_sonoma : "c93f94e9fb76c4e6824e089ef7190ff3510dd76fab1ad7f0f2ff339110587cbd"
21- sha256 cellar : :any_skip_relocation , arm64_ventura : "af16468db4aef232a177bd24653de8c75322d3d104f9e0eeaa7a613b6e4ac405"
22- sha256 cellar : :any_skip_relocation , sonoma : "9cf83cd407ac92e2d365d868aebe4e59b2183b12c91fa7fab988c25eb22ece03"
23- sha256 cellar : :any_skip_relocation , ventura : "3ef45beb72ddfa1d16ec3114fe714cccfd67b9bbd9d0753aef31addd27acd8bb"
24- sha256 cellar : :any_skip_relocation , x86_64_linux : "7b3e74559235fb78c0c7fb540f51dc47a42df8e330da21433185f25639440250"
18+ rebuild 1
19+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "c0cba91012fdd5851f5cf19272b0e2dfd3cfa8c00ad4e064811edc63ccd48c6e"
20+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "1e97d3b417066f176dba54774b161459191e78758b484936c7e80399827dc502"
21+ sha256 cellar : :any_skip_relocation , arm64_ventura : "a66f4eb5d588fdbbe2a934fdd12bcb78be95ce38c9bd25f138f93e066726a622"
22+ sha256 cellar : :any_skip_relocation , sonoma : "df5963b38d0ccfa2d6e88b487f0fec4523b099776a06deefc50a4eda78187600"
23+ sha256 cellar : :any_skip_relocation , ventura : "52f1c4f80e03d426e6840fe8683b16b0944e7eeac1817317076e8a30753825eb"
24+ sha256 cellar : :any_skip_relocation , x86_64_linux : "a14fd5610a22fbadc9fca0d76f844e3a87166919297ae7031681a8db0ca99028"
2525 end
2626
2727 depends_on "go" => :build
2828
2929 def install
30- system "make" , "build"
31- bin . install "cmd/ipfs/ipfs"
30+ ldflags = %W[
31+ -s -w
32+ -X github.com/ipfs/kubo.CurrentCommit=#{ tap . user }
33+ ]
34+ system "go" , "build" , *std_go_args ( ldflags :) , "./cmd/ipfs"
3235
33- generate_completions_from_executable ( bin /"ipfs" , "commands" , "completion" , shells : [ :bash ] )
36+ generate_completions_from_executable ( bin /"ipfs" , "commands" , "completion" )
3437 end
3538
3639 service do
3740 run [ opt_bin /"ipfs" , "daemon" ]
3841 end
3942
4043 test do
41- assert_match "initializing IPFS node" , shell_output ( bin / " ipfs init")
44+ assert_match "initializing IPFS node" , shell_output ( " #{ bin } / ipfs init")
4245 end
4346end
0 commit comments