Skip to content

Instantly share code, notes, and snippets.

@marc-hanheide
Last active August 29, 2015 14:08
Show Gist options
  • Save marc-hanheide/4ebea62ada0883ed84eb to your computer and use it in GitHub Desktop.
Save marc-hanheide/4ebea62ada0883ed84eb to your computer and use it in GitHub Desktop.
Build jekyll debian packages from ruby gem
# taken from https://github.com/jordansissel/fpm/wiki/ConvertingGems#convert-a-gem-and-all-of-its-dependencies
sudo apt-get install ruby1.9.3 rubygems
mkdir /tmp/gems
gem1.9.3 install --no-ri --no-rdoc --install-dir /tmp/gems jekyll
find /tmp/gems/cache -name '*.gem' | xargs -rn1 fpm -d ruby1.9.3 -d rubygems --gem-gem /usr/bin/gem1.9.3 -s gem -t deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment