wok-6.x view mc/receipt @ rev 20705

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