LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 598|回复: 3

vim7.2a PKGBUILD for Archlinux

[复制链接]
发表于 2008-6-25 21:09:56 | 显示全部楼层 |阅读模式
在vim 的邮件列表看到的

Hi,

if you are using Archlinux, you may be interested in PKGBUILD for
vim 7.2a BETA. I created it right now and it seems working. I'm using
a specially set of flags to ./configure so if you want to use this
PKGBUILD, you may have to change the flags. This PKGBUILD is hacked
version from ABS and is not so good -- do not use it if you dont know
exactly what are you doing!

So here is it..
################## PKGBUILD START ###################################x

pkgname=vim
pkgver=7.2a
pkgrel=1
pkgdesc="The world best editor ever!"
arch=(i686 x86_64)
license=('custom:vim')
url="http://www.vim.org"
depends=("vi>=7.1" 'perl' 'python' 'acl' 'gpm' 'libxt')
makedepends=('wget' 'sed' 'grep')
backup=(etc/vimrc)
source=(ftp://ftp.vim.org/pub/vim/unstable/unix/vim-7.2a.tar.bz2)
md5sums=('243c7c83fd834fef1e7eb9d55e592d3f')

build()
{
# Hardcored - bad..
cd ${startdir}/src/vim72a
sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h
# Build party
# Do your own set of flags!! This is non standart set.
./configure --prefix=/usr --localstatedir=/var/lib/vim \
   --with-compiledby=dum8d0g --with-features=big \
   --with-x=yes --disable-gui \
   --with-global-runtime=/usr/share/vim --with-vim-name=vim \
   --enable-multibyte --enable-cscope \
   --disable-perlinterp --disable-pythoninterp --disable-rubyinterp \
       --disable-nls
make || return 1
make  VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install
cd ${startdir}/pkg/usr/bin
rm -f ex view rview xxd vimtutor
ln -s vitutor vimtutor

  # delete the manpages/symlinks provided by vi package
find ${startdir}/pkg/usr/man -type d -name 'man1' 2> /dev/null |
while read mandir; do
   cd ${mandir}
   rm -f *.1
   ln -s rvi.1.gz rvim.1.gz
   ln -s vi.1.gz vim.1.gz
   ln -s vidiff.1.gz vimdiff.1.gz
   ln -s vitutor.1.gz vimtutor.1.gz
done

# kill the nobackup parts
sed -i '/vms/,+4 d' ${startdir}/pkg/usr/share/vim/vimrc_example.vim
install -Dm644 ${startdir}/pkg/usr/share/vim/vimrc_example.vim \
   ${startdir}/pkg/etc/vimrc
# clean all settings and controls -  served by vi package
rm -rf ${startdir}/pkg/usr/share
}

################## PKGBUILD STOP ###################################x

If you really want to use it you may do something like this..

cd /tmp
mkdir vim72a
cd vim72a
cat > PKGBUILD
...paste code above
^D
makepkg
# and if you are really sure
su -c "pacman -U /tmp/vim7.2a/vim-7.2a-1-i686.pkg.tar.gz


So good luck and go test vim 7.2a BETA !! :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---
发表于 2008-6-25 21:45:42 | 显示全部楼层
7.2有什么新功能?
回复 支持 反对

使用道具 举报

发表于 2008-6-26 00:09:26 | 显示全部楼层
同楼上,我也想知道
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-26 01:42:05 | 显示全部楼层
This is a BETA release of Vim 7.2.  It consists of Vim 7.1 plus all
patches, updated runtime files and some more.
The biggest addition is floating support.  Once you have installed Vim
7.2a BETA you can find details about the changes since Vim 7.1 with
":help version-7.2".
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表