wok-current diff vifm/receipt @ rev 25519
created recipes for libuv and libuv-dev 1.44.1
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 24 15:35:59 2023 +0100 (18 months ago) |
parents | 922f061231c2 |
children |
line diff
1.1 --- a/vifm/receipt Mon Jan 17 11:01:52 2022 +0000 1.2 +++ b/vifm/receipt Fri Feb 24 15:35:59 2023 +0100 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="vifm" 1.7 -VERSION="0.10.1" 1.8 +VERSION="0.12" 1.9 CATEGORY="utilities" 1.10 SHORT_DESC="Vi File Manager." 1.11 MAINTAINER="paul@slitaz.org" 1.12 @@ -11,9 +11,12 @@ 1.13 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 1.16 -DEPENDS="file libmagic ncurses vim xorg-libX11" 1.17 -BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis \ 1.18 - vim xorg-libX11-dev" 1.19 +SUGGESTED="vim" # not really needed, busybox vi is sufficient 1.20 +DEPENDS="file libmagic ncurses xorg-libX11" 1.21 +BUILD_DEPENDS="file groff libmagic-dev ncurses-dev util-linux-whereis 1.22 + xorg-libX11-dev" 1.23 + 1.24 +CONFIG_FILES="/etc/vifm/vifmrc" 1.25 1.26 # What is the latest version available today? 1.27 current_version() 1.28 @@ -32,7 +35,8 @@ 1.29 --datadir=/usr/share \ 1.30 $CONFIGURE_ARGS && 1.31 make && 1.32 - make DESTDIR=$DESTDIR -j 1 install 1.33 + make -j 1 install DESTDIR=$DESTDIR 1.34 + # -j 1 is essential! 1.35 } 1.36 1.37 # Rules to gen a SliTaz package suitable for Tazpkg. 1.38 @@ -44,5 +48,17 @@ 1.39 cp -a $install/usr/share $fs/usr 1.40 1.41 # rm stuff 1.42 - rm -rf $fs/usr/share/man 1.43 + rm -rf $fs/usr/share/doc 1.44 + rm -rf $fs/usr/share/man 1.45 } 1.46 + 1.47 +post_install() 1.48 +{ 1.49 + mkdir -p "$1/etc/vifm" 1.50 + 1.51 + # replace vim by vi in vifmrc when vim is not installed 1.52 + [ -f /usr/bin/vim ] || 1.53 + sed -i 's|vicmd=vim|vicmd=vi|' "$1/usr/share/vifm/vifmrc" 1.54 + 1.55 + cp "$1/usr/share/vifm/vifmrc" "$1/etc/vifm/vifmrc" 1.56 +}