wok rev 24882

updated mc (4.8.24 -> 4.8.28)
author Hans-G?nter Theisgen
date Thu Mar 31 17:36:19 2022 +0100 (2022-03-31)
parents 870a10e2d8f5
children 8acd10ad5f1c
files mc-lang/receipt mc/description.txt mc/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mc-lang/receipt	Thu Mar 31 17:36:19 2022 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mc-lang"
     1.7 +VERSION="4.8.28"
     1.8 +CATEGORY="localization"
     1.9 +SHORT_DESC="Midnight Commander, ncurses based file manager - localised messages."
    1.10 +MAINTAINER="maintainer@slitaz.org"
    1.11 +LICENSE="GPL3"
    1.12 +WEB_SITE="https://www.midnight-commander.org/"
    1.13 +
    1.14 +WANTED="mc"
    1.15 +
    1.16 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 +genpkg_rules()
    1.18 +{
    1.19 +	cook_copy_folders	locale
    1.20 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mc/description.txt	Thu Mar 31 17:36:19 2022 +0100
     2.3 @@ -0,0 +1,10 @@
     2.4 +GNU Midnight Commander is a visual file manager, licensed under
     2.5 +GNU General Public License and therefore qualifies as Free Software.
     2.6 +It's a feature rich full-screen text mode application that allows you
     2.7 +to copy, move and delete files and whole directory trees, search for
     2.8 +files and run commands in the subshell.
     2.9 +Internal viewer and editor are included.
    2.10 +
    2.11 +Midnight Commander is based on versatile text interfaces, such as Ncurses
    2.12 +or S-Lang, which allows it to work on a regular console, inside an
    2.13 +X Window terminal, over SSH connections and all kinds of remote shells.
     3.1 --- a/mc/receipt	Thu Mar 31 16:31:10 2022 +0100
     3.2 +++ b/mc/receipt	Thu Mar 31 17:36:19 2022 +0100
     3.3 @@ -1,7 +1,7 @@
     3.4  # SliTaz package receipt.
     3.5  
     3.6  PACKAGE="mc"
     3.7 -VERSION="4.8.24"
     3.8 +VERSION="4.8.28"
     3.9  CATEGORY="system-tools"
    3.10  TAGS="file-manager text-editor"
    3.11  SHORT_DESC="Midnight Commander - ncurses based file manager."
    3.12 @@ -12,10 +12,10 @@
    3.13  TARBALL="$PACKAGE-$VERSION.tar.xz"
    3.14  WGET_URL="http://ftp.midnight-commander.org/$TARBALL"
    3.15  
    3.16 -SUGGESTED="cdrkit-isoinfo file gpm lynx poppler-apps w3m wv xz"
    3.17 -DEPENDS="e2fsprogs glib ncursesw util-linux-blkid"
    3.18 -BUILD_DEPENDS="glib-dev gpm-dev ncursesw-dev ncurses-extra 
    3.19 -	util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev "
    3.20 +SUGGESTED="cdrkit-isoinfo file gpm lynx mc-lang poppler-apps w3m wv xz"
    3.21 +DEPENDS="e2fsprogs gcc83-lib-base glib ncursesw util-linux-blkid"
    3.22 +BUILD_DEPENDS="gcc83 glib-dev gpm-dev ncursesw-dev ncurses-extra
    3.23 +	util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev"
    3.24  
    3.25  GENERIC_MENUS="no"
    3.26  
    3.27 @@ -31,9 +31,11 @@
    3.28  # Rules to configure and make the package.
    3.29  compile_rules()
    3.30  {
    3.31 -	sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c
    3.32 +	sed -i 's|lzma -cd|lzcat|'	src/editor/edit.c
    3.33  
    3.34  	./configure			\
    3.35 +		CC=gcc-83		\
    3.36 +		CXX=g++-83		\
    3.37  		--prefix=/usr		\
    3.38  		--with-gpm-mouse	\
    3.39  		--with-screen=ncurses	\
    3.40 @@ -41,7 +43,7 @@
    3.41  		--libexecdir=/usr/lib	\
    3.42  		--sysconfdir=/etc	\
    3.43  		$CONFIGURE_ARGS &&
    3.44 -	make -j 1 &&
    3.45 +	make &&
    3.46  	make install
    3.47  
    3.48  	mkdir -p $install/usr/share/terminfo/s
    3.49 @@ -60,18 +62,15 @@
    3.50  	cp -a $install/usr/share/mc		$fs/usr/share
    3.51  	cp -a $install/usr/share/terminfo	$fs/usr/share
    3.52  
    3.53 -	sed -i 's#&) ||#) ||#' \
    3.54 -		$fs/usr/lib/mc/ext.d/*.sh
    3.55 -	sed -i 's#|profile|#&receipt|#' \
    3.56 -		$fs/usr/share/mc/syntax/Syntax
    3.57 -	sed -i 's/lzma -dc/lzcat/g' \
    3.58 -		$fs/usr/lib/mc/ext.d/archive.sh
    3.59 +	sed -i 's#&) ||#) ||#'			$fs/usr/lib/mc/ext.d/*.sh
    3.60 +	sed -i 's#|profile|#&receipt|#'		$fs/usr/share/mc/syntax/Syntax
    3.61 +	sed -i 's/lzma -dc/lzcat/g'		$fs/usr/lib/mc/ext.d/archive.sh
    3.62  
    3.63  	cp -a $stuff/*.desktop			$fs/usr/share/applications
    3.64  
    3.65  	cat > $fs/usr/bin/mc.sh <<EOF
    3.66  case \$TERM in
    3.67 -	linux*)
    3.68 +	(linux*)
    3.69  		{
    3.70  		cat <<EOT
    3.71  shift   keycode  59 = F11
    3.72 @@ -85,11 +84,14 @@
    3.73  shift   keycode  67 = F19
    3.74  shift   keycode  68 = F20
    3.75  EOT
    3.76 -		} | loadkeys -uv ; sleep 1 ;;
    3.77 -	xterm*)
    3.78 +		} | loadkeys -uv
    3.79 +		sleep 1
    3.80 +		;;
    3.81 +	(xterm*)
    3.82  		export TERM='xterm-color'
    3.83  		[ -f '/usr/share/terminfo/s/screen-256color' ] && \\
    3.84 -			export TERM='screen-256color'	;;
    3.85 +			export TERM='screen-256color'
    3.86 +		;;
    3.87  esac
    3.88  mc \$@
    3.89