wok-next view mc/receipt @ rev 18627

syslinux/taziso/showfavinfo: show receipt
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 24 14:51:11 2015 +0100 (2015-11-24)
parents c12891d554ba
children 6fa921084d5e
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#|profile|#&receipt|#' -i $fs/usr/share/mc/syntax/Syntax
50 sed 's/lzma -dc/lzcat/g' -i $fs/usr/lib/mc/ext.d/archive.sh
51 cp -a $stuff/*.desktop $fs/usr/share/applications
53 cat > $fs/usr/bin/mc.sh <<EOF
54 case \$TERM in
55 linux*)
56 {
57 cat <<EOT
58 shift keycode 59 = F11
59 shift keycode 60 = F12
60 shift keycode 61 = F13
61 shift keycode 62 = F14
62 shift keycode 63 = F15
63 shift keycode 64 = F16
64 shift keycode 65 = F17
65 shift keycode 66 = F18
66 shift keycode 67 = F19
67 shift keycode 68 = F20
68 EOT
69 } | loadkeys -uv ; sleep 1 ;;
70 xterm*)
71 export TERM='xterm-color'
72 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
73 export TERM='screen-256color' ;;
74 esac
75 mc \$@
77 EOF
78 chmod 755 $fs/usr/bin/mc.sh
79 chown -R root:root $fs
80 }