summaryrefslogtreecommitdiffstats
path: root/abs/core/vi/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/vi/PKGBUILD
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/vi/PKGBUILD')
-rw-r--r--abs/core/vi/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/abs/core/vi/PKGBUILD b/abs/core/vi/PKGBUILD
new file mode 100644
index 0000000..1165431
--- /dev/null
+++ b/abs/core/vi/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 3026 2008-06-18 02:38:15Z eric $
+# Maintainer: tobias [ tobias at archlinux org ]
+
+pkgname=vi
+_srcver=7.1
+_patchlevel=330
+pkgver=${_srcver}.${_patchlevel}
+pkgrel=10
+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')
+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)
+md5sums=('44c6b4914f38d6f9aa959640b89da329' '605cc7ae31bcc9d7864bb0bb6025f55d' \
+ '144aa049ba70621acf4247f0459f3ee7' '0fbebfbf8464b1e65fb6a9ca4bddefe1' \
+ '92e3dc8844d446c1ecd28e7257a47cb7')
+
+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
+ ln -s vi evi
+
+ _runtimedir="${startdir}/pkg/usr/share/vim/"
+ update_runtime
+ # kill vim and x specific stuff
+ sed -i '/vms/,+4 d;/Convenient command/,+3 d;/mouse work/,+2 d'\
+ ${startdir}/pkg/usr/share/vim/vimrc_example.vim
+ 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
+}