Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added brew #55

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions flash.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

class Flash < Formula
desc "Command line script to flash SD card images for the Raspberry Pi"
homepage "http://blog.hypriot.com/"
url "https://github.com/hypriot/flash/archive/0.2.0.tar.gz"
sha256 "4a5af238c22f0792594b5f0e9520e9e62e18ab1d4be6f94e83b41128a417e770"
depends_on "pv"
depends_on "awscli"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we should add this hard dependency to awscli. Nobody but the Hypriot team needs this ;-) And we are moving that part to GitHub releases as well, so only https is used for downloads.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They have a formula cookbook that explains most of the options, but I think you could write something like:

depends_on "awcli" => :optional // or :recommended


bottle :unneeded

def install
libexec.install Dir["Darwin/*"]
bin.write_exec_script Dir["#{libexec}/*"]
end
end