wok-current view mc/receipt @ rev 21973
updated sshttp again (0-31s -> 0.35s2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 11 14:16:34 2019 +0100 (2019-10-11) |
parents | fbb5bc751677 |
children | b7a8bcb5d575 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mc"
4 VERSION="4.8.22"
5 CATEGORY="system-tools"
6 TAGS="file-manager text-editor"
7 SHORT_DESC="Midnight Commander - ncurses based file manager."
8 MAINTAINER="erjo@slitaz.org"
9 LICENSE="GPL3"
10 WEB_SITE="https://www.midnight-commander.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="http://ftp.midnight-commander.org/$TARBALL"
15 SUGGESTED="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file "
16 DEPENDS="e2fsprogs glib ncursesw util-linux-blkid"
17 BUILD_DEPENDS="glib-dev gpm-dev ncursesw-dev ncurses-extra \
18 util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev "
19 GENERIC_MENUS="no"
21 HOST_ARCH="i486 arm"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c
28 ./configure \
29 --prefix=/usr \
30 --with-gpm-mouse \
31 --with-screen=ncurses \
32 --without-subshell \
33 --libexecdir=/usr/lib \
34 --sysconfdir=/etc \
35 $CONFIGURE_ARGS &&
36 make -j 1 &&
37 make install
39 mkdir -p $install/usr/share/terminfo/s
40 cp -a /usr/share/terminfo/s/screen-256color $install/usr/share/terminfo/s
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/applications
48 cp -a $install/etc $fs/
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib $fs/usr
51 cp -a $install/usr/share/mc $fs/usr/share
52 cp -a $install/usr/share/terminfo $fs/usr/share
54 sed 's#&) ||#) ||#' -i $fs/usr/lib/mc/ext.d/*.sh
55 sed 's#|profile|#&receipt|#' -i $fs/usr/share/mc/syntax/Syntax
56 sed 's/lzma -dc/lzcat/g' -i $fs/usr/lib/mc/ext.d/archive.sh
57 cp -a $stuff/*.desktop $fs/usr/share/applications
59 cat > $fs/usr/bin/mc.sh <<EOF
60 case \$TERM in
61 linux*)
62 {
63 cat <<EOT
64 shift keycode 59 = F11
65 shift keycode 60 = F12
66 shift keycode 61 = F13
67 shift keycode 62 = F14
68 shift keycode 63 = F15
69 shift keycode 64 = F16
70 shift keycode 65 = F17
71 shift keycode 66 = F18
72 shift keycode 67 = F19
73 shift keycode 68 = F20
74 EOT
75 } | loadkeys -uv ; sleep 1 ;;
76 xterm*)
77 export TERM='xterm-color'
78 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
79 export TERM='screen-256color' ;;
80 esac
81 mc \$@
83 EOF
85 chmod 755 $fs/usr/bin/mc.sh
86 chown -R root:root $fs
87 }