Skip to content

Instantly share code, notes, and snippets.

@spastorino
Forked from dch/kindlegen.rb
Last active December 14, 2015 14:09
Show Gist options
  • Save spastorino/5098867 to your computer and use it in GitHub Desktop.
Save spastorino/5098867 to your computer and use it in GitHub Desktop.
require 'formula'
class Kindlegen < Formula
url 'http://s3.amazonaws.com/kindlegen/KindleGen_Mac_i386_v2_8.zip'
homepage 'http://www.amazon.com/gp/feature.html?docId=1000234621'
sha1 '08207c7a283d9956a040d87e793f3c00ce66555f'
version '2.8'
skip_clean 'bin'
def install
bin.install Dir['kindlegen']
system "chmod u+x #{prefix}/bin/*"
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