wok-next rev 18571

Up: mc (4.8.15)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Nov 10 22:13:13 2015 +0100 (2015-11-10)
parents 8f02a4cc54c4
children c12891d554ba
files mc/receipt mc/stuff/mc-root.desktop mc/stuff/mc.desktop
line diff
     1.1 --- a/mc/receipt	Tue Nov 10 20:06:48 2015 +0200
     1.2 +++ b/mc/receipt	Tue Nov 10 22:13:13 2015 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="mc"
     1.7 -VERSION="4.8.14"
     1.8 +VERSION="4.8.15"
     1.9  CATEGORY="system-tools"
    1.10  SHORT_DESC="Midnight Commander - ncurses based file manager."
    1.11  MAINTAINER="erjo@slitaz.org"
    1.12 @@ -12,10 +12,10 @@
    1.13  TAGS="file-manager text-editor"
    1.14  HOST_ARCH="i486 arm"
    1.15  
    1.16 -SUGGESTED="gpm"
    1.17 +SUGGESTED="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file "
    1.18  DEPENDS="ncursesw glib e2fsprogs util-linux-blkid"
    1.19  BUILD_DEPENDS="gpm-dev glib-dev ncursesw-dev util-linux-mount-dev \
    1.20 - util-linux-blkid-dev util-linux-uuid-dev"
    1.21 + util-linux-blkid-dev util-linux-uuid-dev ncurses-extra"
    1.22  GENERIC_MENUS="no"
    1.23  
    1.24  # Rules to configure and make the package.
    1.25 @@ -36,7 +36,7 @@
    1.26  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.27  genpkg_rules()
    1.28  {
    1.29 -	mkdir -p $fs/usr/share/applications
    1.30 +	mkdir -p $fs/usr/share/applications /usr/share/terminfo/s
    1.31  	cp -a $install/etc $fs/
    1.32  	cp -a $install/usr/bin $fs/usr
    1.33  	cp -a $install/usr/lib $fs/usr
    1.34 @@ -45,5 +45,32 @@
    1.35  	sed 's#|profile|#&receipt|#' -i $fs/usr/share/mc/syntax/Syntax
    1.36  	sed 's/lzma -dc/lzcat/g' -i	$fs/usr/lib/mc/ext.d/archive.sh
    1.37  	cp -a $stuff/*.desktop $fs/usr/share/applications
    1.38 +	cp -a /usr/share/terminfo/s/screen-256color /usr/share/terminfo/s
    1.39 +	cat > $fs/usr/bin/mc.sh <<EOF
    1.40 +case \$TERM in
    1.41 +	linux*)
    1.42 +		{
    1.43 +		cat <<EOT
    1.44 +shift   keycode  59 = F11
    1.45 +shift   keycode  60 = F12
    1.46 +shift   keycode  61 = F13
    1.47 +shift   keycode  62 = F14
    1.48 +shift   keycode  63 = F15
    1.49 +shift   keycode  64 = F16
    1.50 +shift   keycode  65 = F17
    1.51 +shift   keycode  66 = F18
    1.52 +shift   keycode  67 = F19
    1.53 +shift   keycode  68 = F20
    1.54 +EOT
    1.55 +		} | loadkeys -uv ; sleep 1 ;;
    1.56 +	xterm*)
    1.57 +		export TERM='xterm-color'
    1.58 +		[ -f '/usr/share/terminfo/s/screen-256color' ] && \\
    1.59 +			export TERM='screen-256color'	;;
    1.60 +esac
    1.61 +mc $@
    1.62 +
    1.63 +EOF
    1.64 +	chmod 755 $fs/usr/bin/mc.sh
    1.65  	chown -R root:root $fs
    1.66  }
     2.1 --- a/mc/stuff/mc-root.desktop	Tue Nov 10 20:06:48 2015 +0200
     2.2 +++ b/mc/stuff/mc-root.desktop	Tue Nov 10 22:13:13 2015 +0100
     2.3 @@ -1,7 +1,6 @@
     2.4  [Desktop Entry]
     2.5  Type=Application
     2.6  Name=Midnight Commander (root)
     2.7 -Exec=subox terminal -e mc -S modarcon16root -a
     2.8 +Exec=subox terminal -e mc.sh -S modarin256root -a
     2.9  Icon=terminal
    2.10 -Comment=To enable all syntax-hilight features: switch vte(sakura) to "tango" palette, or use xterm-256color
    2.11  Categories=FileTools;Development;
     3.1 --- a/mc/stuff/mc.desktop	Tue Nov 10 20:06:48 2015 +0200
     3.2 +++ b/mc/stuff/mc.desktop	Tue Nov 10 22:13:13 2015 +0100
     3.3 @@ -1,6 +1,6 @@
     3.4  [Desktop Entry]
     3.5  Type=Application
     3.6  Name=Midnight Commander
     3.7 -Exec=terminal -e /usr/bin/mc
     3.8 +Exec=terminal -e mc.sh
     3.9  Icon=terminal
    3.10  Categories=ConsoleOnly;Utility;FileTools;