21 lines
571 B
Ruby
21 lines
571 B
Ruby
# 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
|