# HG changeset patch # User Hans-G?nter Theisgen # Date 1572620108 -3600 # Node ID c16b1e0dda38a021cf737b828050a4b0651f6cd6 # Parent 07e5f46bebd3afd8e66565c6562adfbc215a72e1 updated vim (7.3 -> 8.1.2237) diff -r 07e5f46bebd3 -r c16b1e0dda38 vim/receipt --- a/vim/receipt Fri Nov 01 15:32:39 2019 +0100 +++ b/vim/receipt Fri Nov 01 15:55:08 2019 +0100 @@ -1,19 +1,21 @@ # SliTaz package receipt. PACKAGE="vim" -VERSION="7.3" +VERSION="8.1.2237" CATEGORY="editors" -SHORT_DESC="Advanced text editor" +TAGS="text-editor" +SHORT_DESC="Advanced text editor." MAINTAINER="erjo@slitaz.org" LICENSE="other" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WEB_SITE="http://www.vim.org/" -WGET_URL="ftp://ftp.vim.org/pub/vim/unix/$TARBALL" +WEB_SITE="https://www.vim.org/" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/v$VERSION.tar.gz" + +DEPENDS="acl diffutils ncurses" +BUILD_DEPENDS="acl-dev diffutils ncurses-dev" + CONFIG_FILES="/etc/vim/vimrc" -TAGS="text-editor" - -DEPENDS="ncurses acl diffutils" -BUILD_DEPENDS="ncurses-dev acl-dev diffutils" # Rules to configure and make the package. compile_rules() @@ -24,20 +26,25 @@ # (patch from Arch Linux PKGBUILD) sed -i 's|^.*\(#define SYS_VIMRC_FILE\).*$|\1 "/etc/vim/vimrc"|' $src/src/feature.h - ./configure \ - --prefix=/usr \ - --cache-file=$PWD/config.cache \ - --infodir=/usr/share/info \ - --with-features=normal \ - --with-x=no \ - --disable-gui \ - --enable-multibyte \ - --disable-motif-check \ - --disable-athena-check \ - --mandir=/usr/share/man $CONFIGURE_ARGS && + ./configure \ + --prefix=/usr \ + --cache-file=$PWD/config.cache \ + --infodir=/usr/share/info \ + --with-features=normal \ + --with-x=no \ + --disable-gui \ + --enable-multibyte \ + --disable-motif-check \ + --disable-athena-check \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && - make VIMRCLOC=/etc/vim VIMRUNTIMEDIR=/usr/share/vim/vim73 MAKE="make -e" && + make \ + VIMRCLOC=/etc/vim \ + VIMRUNTIMEDIR=/usr/share/vim/vim81 \ + MAKE="make -e" && make DESTDIR=$DESTDIR install + mkdir -p $DESTDIR/etc/vim cp -a $src/runtime/vimrc_example.vim $DESTDIR/etc/vim/vimrc } @@ -45,27 +52,30 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share $fs/etc - - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share/vim $fs/usr/share - cp -a $install/etc/vim $fs/etc + mkdir -p $fs/usr/share + mkdir -p $fs/etc + + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share/vim $fs/usr/share + cp -a $install/etc/vim $fs/etc } post_install() { cmd=$(readlink "$1/bin/vi") - if [ "$cmd" != '/usr/bin/vim' ]; then + if [ "$cmd" != '/usr/bin/vim' ] + then echo '' echo "**** Actual VI link : $cmd" echo '' echo -n 'Do you want vim for /bin/vi (y/N) ? : '; read -t 30 anser - if [ "$anser" = 'y' ]; then + if [ "$anser" = 'y' ] + then echo '' echo -n 'Removing vi link to make a new one pointing on /usr/bin/vim...' rm "$1/bin/vi" && ln -sf /usr/bin/vim "$1/bin/vi" status - else + else echo '' echo "Leaving /bin/vi to : $cmd" fi