summaryrefslogtreecommitdiffstats
path: root/vi/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'vi/PKGBUILD')
-rw-r--r--vi/PKGBUILD113
1 files changed, 113 insertions, 0 deletions
diff --git a/vi/PKGBUILD b/vi/PKGBUILD
new file mode 100644
index 0000000..0a378b8
--- /dev/null
+++ b/vi/PKGBUILD
@@ -0,0 +1,113 @@
+# $Id$
+# Maintainer: tobias [ tobias at archlinux org ]
+
+pkgname=vi
+_srcver=7.2
+_patchlevel=108
+pkgver=${_srcver}.${_patchlevel}
+pkgrel=1
+pkgdesc="a highly configurable, improved version of the vi text editor (basic version)"
+arch=(i686 x86_64)
+license=('custom:vim')
+url="http://www.vim.org"
+groups=('base')
+depends=('glibc' 'ncurses' 'coreutils')
+makedepends=('wget' 'sed' 'grep' 'gettext')
+backup=(etc/virc)
+install=${pkgname}.install
+# we need the extra-stuff to get all patches applied smoothly
+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 \
+ fetch_patches.sh fetch_runtime.sh)
+
+build()
+{
+ # pull in patches from vim.org (or the src cache alternatively)
+ . ${startdir}/src/fetch_patches.sh
+ . ${startdir}/src/fetch_runtime.sh
+ get_patches || return 1
+ cd ${startdir}/src/vim$(echo ${_srcver} | sed "s/\.//")
+ # set the virc different from vimrc
+ sed -i 's|^.*\(#define SYS_VIMRC_FILE.*"\) .*$|\1|' src/feature.h
+ sed -i 's|^.*\(#define VIMRC_FILE.*"\) .*$|\1|' src/feature.h
+ sed -i 's|^.*\(#define USR_VIMRC_FILE\t"\).*$|\1$HOME/.virc"|' src/feature.h
+ sed -i 's|/etc/vimrc|/etc/virc|' src/feature.h
+ sed -i 's|\.vimrc|.virc|' src/feature.h
+ # build party
+ ./configure --prefix=/usr --localstatedir=/var/lib/vim --mandir=/usr/share/man \
+ --with-compiledby=ArchLinux --with-features=normal \
+ --with-global-runtime=/usr/share/vim --with-vim-name=vi \
+ --disable-gpm --disable-acl --with-x=no --disable-gui --enable-multibyte
+ make || return 1
+ make VIMRCLOC=/etc DESTDIR=${startdir}/pkg VIMRTDIR= install
+ cd ${startdir}/pkg/usr/bin
+ rm -f vim rvim view rview vidiff
+ ln -s vi evi
+
+ # delete the manpages for vidiff, we don't bother with that symlink since vidiff doesn't work
+ find ${startdir}/pkg/usr/share/man -type d -name 'man1' 2> /dev/null | \
+ while read mandir; do
+ cd ${mandir}
+ rm -f vidiff.1
+ done
+
+ _runtimedir="${startdir}/pkg/usr/share/vim/"
+ update_runtime
+ install -Dm644 ${startdir}/pkg/usr/share/vim/vimrc_example.vim \
+ ${startdir}/pkg/etc/virc
+ rm -f ${startdir}/pkg/usr/share/vim/gvimrc_example.vim
+ install -dm755 ${startdir}/pkg/usr/share/licenses/vim
+ cd ${startdir}/pkg/usr/share/licenses/vim
+ ln -s ../../vim/doc/uganda.txt license.txt
+}
+md5sums=('f0901284b338e448bfd79ccca0041254'
+ '35e04482f07c57221c9a751aaa3b8dac'
+ 'd8884786979e0e520c112faf2e176f05'
+ 'f16f81339ea02b6e1a736264861b7fad'
+ '92e3dc8844d446c1ecd28e7257a47cb7')
+sha512sums=('e33bfb1b86b769ff4980bc48b9dc70db64c5a44d487206a387cfaefef98fbfee70359e625487c6891f64758bbea5502b2b97104cfa6eb6829a68073ae26a70b6'
+ 'bcf5d384002a9e9be6d84f5aeb802c3e16e17806d1c87f6687c52b3ce34684f8ad4c1aa5d67810a3205265dd401a1061ad2d0e2fc095de32391c159f6ba04e1a'
+ '939571d34b941b1394a49515b359a7606adf8051079492f497d4ead64f58e287ea5ed695473db8ec1f90fdfe57b028f574c6541417025b468d1818ce0bfd9f5a'
+ '7e94b6235e35c9b894863925d3a52a4723dbc9956989636c337776c0f327aaf183a6e16e91e1841c6618a9fc91a798253fbc5d95c94379a93da323f4cd4f2306'
+ '6478162ee2d4e5a086e576e058c1c0d2bd6742c32ba4b4ca4479761222f1f6c937bd134c431f4cce4e2eb9895f49b2fc52e43f56163806b54e70c1efda2ead39')
+md5sums=('f0901284b338e448bfd79ccca0041254'
+ '35e04482f07c57221c9a751aaa3b8dac'
+ 'd8884786979e0e520c112faf2e176f05'
+ '3c27eb04e6c00d675d148ffc7746336e'
+ '92e3dc8844d446c1ecd28e7257a47cb7')
+sha256sums=('914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86'
+ '20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d'
+ '11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b'
+ 'ec8bece94699658c01dab711d11dde0d96aff9f65016c99efbdb1d4280a134cf'
+ '43660a058e62b88777971abace58d1a9ffddd895123cd204fd503eb496cd11af')
+md5sums=('f0901284b338e448bfd79ccca0041254'
+ '35e04482f07c57221c9a751aaa3b8dac'
+ 'd8884786979e0e520c112faf2e176f05'
+ 'b2e4b679f89c545dc6d81b04b5d9fc8e'
+ '92e3dc8844d446c1ecd28e7257a47cb7')
+sha256sums=('914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86'
+ '20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d'
+ '11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b'
+ '44a3f7e95cb1c2f182e6a0173b6692744bc4ed36a3829753aad73f711a5b0732'
+ '43660a058e62b88777971abace58d1a9ffddd895123cd204fd503eb496cd11af')
+md5sums=('f0901284b338e448bfd79ccca0041254'
+ '35e04482f07c57221c9a751aaa3b8dac'
+ 'd8884786979e0e520c112faf2e176f05'
+ 'adc18dda5ecacdb4689a5c5ef44a55d9'
+ '92e3dc8844d446c1ecd28e7257a47cb7')
+sha256sums=('914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86'
+ '20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d'
+ '11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b'
+ 'eb6d39d9acc226328defeeddc6a7d10ae0024a7d5c1115f200cbc7e740cb0b45'
+ '43660a058e62b88777971abace58d1a9ffddd895123cd204fd503eb496cd11af')
+md5sums=('f0901284b338e448bfd79ccca0041254'
+ '35e04482f07c57221c9a751aaa3b8dac'
+ 'd8884786979e0e520c112faf2e176f05'
+ 'e19a99604b96080b0dc6e17c643b411f'
+ '92e3dc8844d446c1ecd28e7257a47cb7')
+sha256sums=('914db0f2205ebd6f02878295ec2506036ea7500399db112c61a01491cd9a1d86'
+ '20894ac79672160bfc4f1d2f9f9775b34d944762d655307a91ca96d358faa04d'
+ '11607f539a4518b550bf1606b7d3a6f36c1ffdf566c058e7d94bced78034cd5b'
+ 'f7f113c0469f452081987b62b7af795462bf6aaf879693e8118f8f178727351c'
+ '43660a058e62b88777971abace58d1a9ffddd895123cd204fd503eb496cd11af')