|
发表于 2008-11-24 18:20:10
|
显示全部楼层
Post by shawlz;1913011
不是这样子的。。 用abs树编译的过程是:先利用abs从源码编译软件,最后还是用“pacman —U 软件包”安装软件的。。
我不太明白的是,这个编译的过程,可以带来的好处是什么?? 好处就是实现你想要的vi,
大致是这样子的- # $Id: PKGBUILD 17439 2008-10-29 19:05:16Z tobias $
- # Maintainer: tobias [ tobias at archlinux org ]
- pkgname=gvim
- _srcver=7.2
- _patchlevel=49
- pkgver=${_srcver}.${_patchlevel}
- pkgrel=1
- pkgdesc="the vim text editor with advanced features enabled, such as a gui mode"
- arch=(i686 x86_64)
- license=('custom:vim')
- url="http://www.vim.org"
- depends=('perl' 'python' 'ruby' 'acl' 'libxt' 'gtk2' 'desktop-file-utils')
- makedepends=('pkgconfig')
- backup=(etc/gvimrc)
- conflicts=('gvim-devel')
- provides=('gvim-devel')
- install=${pkgname}.install
- source=(ftp://ftp.vim.org/pub/vim/unix/vim-${_srcver}.tar.bz2 \
- ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-extra.tar.gz \
- ftp://ftp.vim.org/pub/vim/extra/vim-${_srcver}-lang.tar.gz \
- ${pkgname}.desktop fetch_patches.sh)
- md5sums=('f0901284b338e448bfd79ccca0041254' '35e04482f07c57221c9a751aaa3b8dac' \
- 'd8884786979e0e520c112faf2e176f05' '2be104c0372dd6dae19cb7968c03cd4f' \
- 'a3b03cd44b8ed78a99850d4cbfaafe55')
- build()
- {
- # patch party
- # pull in patches from vim.org (or the src cache alternatively)
- . ${startdir}/src/fetch_patches.sh
- get_patches || return 1
- cd ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//")
- # define the place for the global (g)vimrc file (set to /etc/vimrc)
- sed -i 's|^.*\(#define SYS_.*VIMRC_FILE.*"\) .*$|\1|' src/feature.h
- ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
- --with-compiledby=kofshower --with-features=huge \
- --with-x=yes --enable-xim --enable-fontset --enable-gui=gtk2 \
- --with-global-runtime=/usr/share/vim \
- --enable-multibyte --enable-cscope \
- --enable-perlinterp --enable-pythoninterp --enable-rubyinterp
- make || return 1
- # install everything first ...
- make VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install
- # move the binary and fix the (g)* related symlinks
- cd ${startdir}/pkg/usr/bin
- ln -s gvim evim
- ln -s gvim egview
- ln -s gvim gview
- ln -s gvim gvimdiff
- ln -s gvim rgview
- ln -s gvim rgvim
- install -Dm644 ${startdir}/pkg/usr/share/vim/gvimrc_example.vim \
- ${startdir}/pkg/etc/gvimrc
- # freedesktop links
- install -D -m644 ${startdir}/src/${pkgname}.desktop \
- ${startdir}/pkg/usr/share/applications/gvim.desktop
- install -D -m644 ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//")/runtime/vim48x48.png \
- ${startdir}/pkg/usr/share/pixmaps/gvim.png
复制代码 现在有了大约49个补丁 |
|