Skip to content

Instantly share code, notes, and snippets.

@kaosf
Created June 19, 2015 18:32
Show Gist options
  • Select an option

  • Save kaosf/8f7db2350e9ca1a29519 to your computer and use it in GitHub Desktop.

Select an option

Save kaosf/8f7db2350e9ca1a29519 to your computer and use it in GitHub Desktop.
# ref.
# https://twitter.com/udzura/status/611906297483493376
# https://rubygems.org/gems/fpm
# https://github.com/jordansissel/fpm
# https://github.com/jordansissel/fpm/wiki
# https://github.com/jordansissel/fpm/wiki/PackageMakeInstall
# Versions:
# OS: Ubuntu 14.04 amd64
# Ruby: 2.2.2p95
# gem: 2.4.5
#gem install fpm
gem install fpm -v 1.3.3
sudo aptitude -y install \
build-essential \
lua5.2 liblua5.2-dev luajit libluajit-5.1-2 libluajit-5.1-dev \
libperl-dev \
libpython-dev libpython3-dev \
ruby ruby-dev \
libx11-dev libxt-dev libgtk2.0-dev
wget https://github.com/vim-jp/vim/archive/v7-4-746.tar.gz
tar xzf v7-4-746.tar.gz
cd vim-7-4-746
./configure \
--prefix=/usr \
--with-compiledby="myname <my@email.address>" \
--enable-gui=gtk2 \
--enable-perlinterp=yes \
--enable-pythoninterp=yes \
--enable-rubyinterp \
--enable-luainterp=yes \
--enable-multibyte \
--enable-fail-if-missing \
--with-features=huge \
--with-x \
--with-luajit
make
mkdir /tmp/installdir
make install DESTDIR=/tmp/installdir
fpm -s dir -t deb -n vim -v 7.4.746 -C /tmp/installdir -p vim_VERSION_ARCH.deb \
-d lua5.2 -d luajit -d libluajit-5.1-2 -d ruby \
usr/bin
# "vim_7.4.746_amd64.deb" is generated.
sudo aptitude purge vim vim-nox vim-runtime
# Don't purge following packages.
#
# vim-tiny vim-common
#
# These packages are depended by "ubuntu-minimal" package.
sudo dpkg -i vim_7.4.746_amd64.deb
# (Reading database ... 175495 files and directories currently installed.)
# Preparing to unpack vim_7.4.746_amd64.deb ...
# Unpacking vim (7.4.746) ...
# dpkg: error processing archive vim_7.4.746_amd64.deb (--install):
# trying to overwrite '/usr/bin/xxd', which is also in package vim-common 2:7.4.052-1ubuntu3
# Errors were encountered while processing:
# vim_7.4.746_amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment