wok view mc/receipt @ rev 24102

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 17 10:35:57 2021 +0000 (2021-09-17)
parents 74dd7f0b1ca6
children 241fb98cab1c
line source
1 # SliTaz package receipt.
3 PACKAGE="mc"
4 VERSION="4.8.24"
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="cdrkit-isoinfo file gpm lynx poppler-apps w3m wv xz"
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 "
20 GENERIC_MENUS="no"
22 HOST_ARCH="i486 arm"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c
29 ./configure \
30 --prefix=/usr \
31 --with-gpm-mouse \
32 --with-screen=ncurses \
33 --without-subshell \
34 --libexecdir=/usr/lib \
35 --sysconfdir=/etc \
36 $CONFIGURE_ARGS &&
37 make -j 1 &&
38 make install
40 mkdir -p $install/usr/share/terminfo/s
41 cp -a /usr/share/terminfo/s/screen-256color \
42 $install/usr/share/terminfo/s
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/share/applications
50 cp -a $install/etc $fs/
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/usr/share/mc $fs/usr/share
54 cp -a $install/usr/share/terminfo $fs/usr/share
56 sed -i 's#&) ||#) ||#' \
57 $fs/usr/lib/mc/ext.d/*.sh
58 sed -i 's#|profile|#&receipt|#' \
59 $fs/usr/share/mc/syntax/Syntax
60 sed -i 's/lzma -dc/lzcat/g' \
61 $fs/usr/lib/mc/ext.d/archive.sh
63 cp -a $stuff/*.desktop $fs/usr/share/applications
65 cat > $fs/usr/bin/mc.sh <<EOF
66 case \$TERM in
67 linux*)
68 {
69 cat <<EOT
70 shift keycode 59 = F11
71 shift keycode 60 = F12
72 shift keycode 61 = F13
73 shift keycode 62 = F14
74 shift keycode 63 = F15
75 shift keycode 64 = F16
76 shift keycode 65 = F17
77 shift keycode 66 = F18
78 shift keycode 67 = F19
79 shift keycode 68 = F20
80 EOT
81 } | loadkeys -uv ; sleep 1 ;;
82 xterm*)
83 export TERM='xterm-color'
84 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
85 export TERM='screen-256color' ;;
86 esac
87 mc \$@
89 EOF
91 chmod 755 $fs/usr/bin/mc.sh
92 chown -R root:root $fs
93 }