#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-vim ARCH=sparc BUILD=1 VIMVER=6.2 VERSION=$VIMVER CTAGSVER=5.5.2 # Why can't this be something normal? DIRVER=62 # ctags was once a part of vim, # but now we have to bundle it in cd $TMP tar xzvf $CWD/ctags-$CTAGSVER.tar.gz cd ctags-$CTAGSVER chown -R root.root . CFLAGS="-O2" ./configure --prefix=/usr sparc-slackware-linux make make install prefix=$PKG/usr mkdir -p $PKG/usr/doc/ctags-$CTAGSVER cp -a COPYING EXTENDING.html FAQ INSTALL INSTALL.oth NEWS QUOTES README \ $PKG/usr/doc/ctags-$CTAGSVER chmod 644 $PKG/usr/doc/ctags-$CTAGSVER/* echo "+================+" echo "| vim-$VIMVER (no X) |" echo "+================+" cd $TMP tar xjvf $CWD/vim-$VIMVER.tar.bz2 tar xjvf $CWD/vim-$VIMVER-lang.tar.bz2 # build the non-X version of vim cd $TMP/vim$DIRVER chown -R root.root . for file in $CWD/patches/* ; do ( zcat $file | patch -p0 --verbose --batch ) done CFLAGS="-O2" ./configure \ --prefix=/usr \ --without-x \ --disable-gui \ --with-features=big \ sparc-slackware-linux make make install DESTDIR=$PKG rm -rf $PKG/usr/man/man1/{etags,ex,rview,rvim,view}.1 gzip -9 $PKG/usr/man/man1/* #( cd/usr/man/man1 ; ln -sf ctags.1.gz etags.1.gz ) ( cd $PKG/usr/man/man1 ; ln -sf vim.1.gz ex.1.gz ) ( cd $PKG/usr/man/man1 ; ln -sf vim.1.gz rview.1.gz ) ( cd $PKG/usr/man/man1 ; ln -sf vim.1.gz rvim.1.gz ) ( cd $PKG/usr/man/man1 ; ln -sf vim.1.gz view.1.gz ) ( cd $PKG/usr/bin ; rm -rf ex ) ( cd $PKG/usr/bin ; ln -sf vim ex ) ( cd $PKG/usr/bin ; rm -rf rview ) ( cd $PKG/usr/bin ; ln -sf vim rview ) ( cd $PKG/usr/bin ; rm -rf rvim ) ( cd $PKG/usr/bin ; ln -sf vim rvim ) ( cd $PKG/usr/bin ; rm -rf view ) ( cd $PKG/usr/bin ; ln -sf vim view ) ( cd $PKG/usr/bin ; rm -rf eview ) ( cd $PKG/usr/bin ; ln -sf vim eview ) ( cd $PKG/usr/bin ; rm -rf evim ) ( cd $PKG/usr/bin ; ln -sf vim evim ) mkdir -p $PKG/usr/doc/vim-$VIMVER cp -a README.txt $PKG/usr/doc/vim-$VIMVER find $PKG/usr/doc/vim-$VIMVER -type f | xargs chmod 644 ( cd $PKG/usr/doc/vim-$VIMVER ; rm -rf doc ) ( cd $PKG/usr/doc/vim-$VIMVER ; ln -sf /usr/share/vim/vim$DIRVER doc ) mkdir -p $PKG/install cat $CWD/slack-desc.vim > $PKG/install/slack-desc zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh # Build the package: cd $PKG makepkg -l y -c n $TMP/vim-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/vim$DIRVER rm -rf $TMP/ctags-$CTAGSVER rm -rf $PKG fi