Skip to content

Instantly share code, notes, and snippets.

@franckverrot
Created July 4, 2015 15:22
Show Gist options
  • Save franckverrot/5fc72c7cc9849b2178b4 to your computer and use it in GitHub Desktop.
Save franckverrot/5fc72c7cc9849b2178b4 to your computer and use it in GitHub Desktop.
Kindlegen Formula
require 'formula'
class Kindlegen < Formula
url 'http://s3.amazonaws.com/kindlegen/KindleGen_Mac_i386_v2_7.zip'
homepage 'http://www.amazon.com/gp/feature.html?docId=1000234621'
sha256 'e75aaf4a70875eedbcd69c6f44c22bbadf5a48a81de5130947df4698c34c6597'
version '2.7'
skip_clean 'bin'
def install
bin.install Dir['kindlegen']
end
def test
system "kindlegen"
end
def caveats; <<-EOS
We agreed to the KindleGen License Agreement for you by downloading KindleGen.
If this is unacceptable you should uninstall.
License information at:
http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000234621
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment