# HG changeset patch # User Hans-G?nter Theisgen # Date 1659434399 -3600 # Node ID 2e4bde2eb7d9f91791dd6fa74a3d236168b353b5 # Parent 15d3cabcb53e513f70e2cb6037cdd578f80ba0d1 updated vifm (0.10.1 -> 0.12) diff -r 15d3cabcb53e -r 2e4bde2eb7d9 vifm/description.txt --- a/vifm/description.txt Tue Aug 02 10:30:16 2022 +0100 +++ b/vifm/description.txt Tue Aug 02 10:59:59 2022 +0100 @@ -1,2 +1,3 @@ -Vifm is a file manager with curses interface, which provides Vi[m]-like environment -for managing objects within file systems, extended with some useful ideas from mutt. +Vifm is a file manager with curses interface, which provides Vi[m]-like +environment for managing objects within file systems, extended with some +useful ideas from mutt. diff -r 15d3cabcb53e -r 2e4bde2eb7d9 vifm/receipt --- a/vifm/receipt Tue Aug 02 10:30:16 2022 +0100 +++ b/vifm/receipt Tue Aug 02 10:59:59 2022 +0100 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="vifm" -VERSION="0.10.1" +VERSION="0.12" CATEGORY="utilities" SHORT_DESC="Vi File Manager." MAINTAINER="paul@slitaz.org" @@ -11,9 +11,12 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" -DEPENDS="file libmagic ncurses vim xorg-libX11" -BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis \ - vim xorg-libX11-dev" +SUGGESTED="vim" # not really needed, busybox vi is sufficient +DEPENDS="file libmagic ncurses xorg-libX11" +BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis + xorg-libX11-dev" + +CONFIG_FILES="/etc/vifm/vifmrc" # What is the latest version available today? current_version() @@ -32,7 +35,8 @@ --datadir=/usr/share \ $CONFIGURE_ARGS && make && - make DESTDIR=$DESTDIR -j 1 install + make -j 1 install DESTDIR=$DESTDIR + # -j 1 is essential! } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -44,5 +48,17 @@ cp -a $install/usr/share $fs/usr # rm stuff - rm -rf $fs/usr/share/man + rm -rf $fs/usr/share/doc + rm -rf $fs/usr/share/man } + +post_install() +{ + mkdir -p "$1/etc/vifm" + + # replace vim by vi in vifmrc when vim is not installed + [ -f /usr/bin/vim ] || + sed -i 's|vicmd=vim|vicmd=vi|' "$1/usr/share/vifm/vifmrc" + + cp "$1/usr/share/vifm/vifmrc" "$1/etc/vifm/vifmrc" +}