breadapi: add breadapi formula
This commit is contained in:
parent
d729e2a1d5
commit
083b568482
20
Formula/breadapi.rb
Normal file
20
Formula/breadapi.rb
Normal file
@ -0,0 +1,20 @@
|
||||
# Documentation: https://docs.brew.sh/Formula-Cookbook
|
||||
# https://rubydoc.brew.sh/Formula
|
||||
class Breadapi < Formula
|
||||
desc "breadnet API endpoints"
|
||||
homepage ""
|
||||
url "https://git.breadone.xyz/breadone/BreadAPI/archive/1.0.0.tar.gz"
|
||||
sha256 "56c36235b8978c8dce9f4122fab260dfabbd07d3c34b955d9d60eb28d0252b01"
|
||||
license ""
|
||||
|
||||
depends_on "swift"
|
||||
|
||||
def install
|
||||
system "swift", "build", "--configuration", "release", "--disable-sandbox"
|
||||
bin.install ".build/release/BreadAPI" => "breadapi"
|
||||
end
|
||||
|
||||
test do
|
||||
system bin/"breadapi", "--help"
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user