Skip to content

Instantly share code, notes, and snippets.

@yanokwa
Forked from dch/kindlegen.rb
Last active August 29, 2015 13:57
Show Gist options
  • Save yanokwa/9568112 to your computer and use it in GitHub Desktop.
Save yanokwa/9568112 to your computer and use it in GitHub Desktop.
require 'formula'
class Kindlegen < Formula
url 'http://kindlegen.s3.amazonaws.com/KindleGen_Mac_i386_v2_9.zip'
homepage 'http://www.amazon.com/gp/feature.html?docId=1000765211'
md5 '0e21737cbe1ec74e33d5cf722767e18c'
version '2.9'
skip_clean 'bin'
def install
bin.install Dir['kindlegen']
end
def test
system "kindlegen"
end
def caveats; <<-EOS
When we downloaded KindleGen, we agreed to Amazon's
Software End User License Agreement.
If this is unacceptable you should uninstall KindleGen.
License information at:
http://www.amazon.com/gp/feature.html?docId=1000599251
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment