wok-current rev 25398

updated vifm (0.10.1 -> 0.12)
author Hans-G?nter Theisgen
date Tue Aug 02 10:59:59 2022 +0100 (2022-08-02)
parents 15d3cabcb53e
children 5fb9c98c2c90
files vifm/description.txt vifm/receipt
line diff
     1.1 --- a/vifm/description.txt	Tue Aug 02 10:30:16 2022 +0100
     1.2 +++ b/vifm/description.txt	Tue Aug 02 10:59:59 2022 +0100
     1.3 @@ -1,2 +1,3 @@
     1.4 -Vifm is a file manager with curses interface, which provides Vi[m]-like environment
     1.5 -for managing objects within file systems, extended with some useful ideas from mutt.
     1.6 +Vifm is a file manager with curses interface, which provides Vi[m]-like
     1.7 +environment for managing objects within file systems, extended with some
     1.8 +useful ideas from mutt.
     2.1 --- a/vifm/receipt	Tue Aug 02 10:30:16 2022 +0100
     2.2 +++ b/vifm/receipt	Tue Aug 02 10:59:59 2022 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="vifm"
     2.7 -VERSION="0.10.1"
     2.8 +VERSION="0.12"
     2.9  CATEGORY="utilities"
    2.10  SHORT_DESC="Vi File Manager."
    2.11  MAINTAINER="paul@slitaz.org"
    2.12 @@ -11,9 +11,12 @@
    2.13  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.14  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.15  
    2.16 -DEPENDS="file libmagic ncurses vim xorg-libX11"
    2.17 -BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis \
    2.18 -	vim xorg-libX11-dev"
    2.19 +SUGGESTED="vim"		# not really needed, busybox vi is sufficient
    2.20 +DEPENDS="file libmagic ncurses xorg-libX11"
    2.21 +BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis
    2.22 +	xorg-libX11-dev"
    2.23 +
    2.24 +CONFIG_FILES="/etc/vifm/vifmrc"
    2.25  
    2.26  # What is the latest version available today?
    2.27  current_version()
    2.28 @@ -32,7 +35,8 @@
    2.29  		--datadir=/usr/share	\
    2.30  	 	$CONFIGURE_ARGS &&
    2.31  	make &&
    2.32 -	make DESTDIR=$DESTDIR -j 1 install
    2.33 +	make -j 1 install DESTDIR=$DESTDIR
    2.34 +	# -j 1 is essential!
    2.35  }
    2.36  
    2.37  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.38 @@ -44,5 +48,17 @@
    2.39  	cp -a $install/usr/share	$fs/usr
    2.40  
    2.41  	# rm stuff
    2.42 -	rm -rf $fs/usr/share/man
    2.43 +	rm -rf				$fs/usr/share/doc
    2.44 +	rm -rf				$fs/usr/share/man
    2.45  }
    2.46 +
    2.47 +post_install()
    2.48 +{
    2.49 +	mkdir -p "$1/etc/vifm"
    2.50 +
    2.51 +	# replace vim by vi in vifmrc when vim is not installed
    2.52 +	[ -f /usr/bin/vim ] ||
    2.53 +	sed -i 's|vicmd=vim|vicmd=vi|'	"$1/usr/share/vifm/vifmrc"
    2.54 +
    2.55 +	cp "$1/usr/share/vifm/vifmrc"	"$1/etc/vifm/vifmrc"
    2.56 +}