Skip to content

Instantly share code, notes, and snippets.

@maraca
Last active December 25, 2015 11:29
Show Gist options
  • Save maraca/6969199 to your computer and use it in GitHub Desktop.
Save maraca/6969199 to your computer and use it in GitHub Desktop.
Package Ruby 1.9.3-p448 with FPM
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz
tar -xzvf ruby-1.9.3-p448.tar.gz
cd ruby-1.9.3-p448/
./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby-1.9.3
fpm -s dir -t deb -n ruby-1.9.3 -v 1.9.3-p448 \
--description "Self-packaged ruby 1.9.3" \
-C /tmp/ruby-1.9.3 -p ruby-VERSION_ARCH.deb \
-m '[email protected]' --vendor 'Cotap Inc.' \
--license 'Private' \
--url 'https://github.com/cotap' \
usr/bin usr/lib usr/share/man usr/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment