wok-current view mc/receipt @ rev 25707
Fix miss file need for grub2-efi install (kernel.img, modinfo.sh)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Thu May 30 20:14:23 2024 +0000 (5 months ago) |
parents | 2c7fdf85178f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="mc"
4 VERSION="4.8.28"
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 mc-lang poppler-apps w3m wv xz"
16 DEPENDS="e2fsprogs gcc-lib-base glib ncursesw util-linux-blkid"
17 BUILD_DEPENDS="gcc 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 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
28 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 sed -i 's|lzma -cd|lzcat|' src/editor/edit.c
36 # Patch to use mouse with ncurses 6.x
37 # see https://midnight-commander.org/ticket/4144
38 patch -p1 < $stuff/fix-mouse-ncurses6.patch
40 ./configure \
41 --prefix=/usr \
42 --with-gpm-mouse \
43 --with-screen=ncurses \
44 --without-subshell \
45 --libexecdir=/usr/lib \
46 --sysconfdir=/etc \
47 $CONFIGURE_ARGS &&
48 make &&
49 make install
51 mkdir -p $install/usr/share/terminfo/s
52 cp -a /usr/share/terminfo/s/screen-256color \
53 $install/usr/share/terminfo/s
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/share/applications
61 cp -a $install/etc $fs/
62 cp -a $install/usr/bin $fs/usr
63 cp -a $install/usr/lib $fs/usr
64 cp -a $install/usr/share/mc $fs/usr/share
65 cp -a $install/usr/share/terminfo $fs/usr/share
67 sed -i 's#&) ||#) ||#' $fs/usr/lib/mc/ext.d/*.sh
68 sed -i 's#|profile|#&receipt|#' $fs/usr/share/mc/syntax/Syntax
69 sed -i 's/lzma -dc/lzcat/g' $fs/usr/lib/mc/ext.d/archive.sh
71 cp -a $stuff/*.desktop $fs/usr/share/applications
73 cat > $fs/usr/bin/mc.sh <<EOF
74 case \$TERM in
75 (linux*)
76 {
77 cat <<EOT
78 shift keycode 59 = F11
79 shift keycode 60 = F12
80 shift keycode 61 = F13
81 shift keycode 62 = F14
82 shift keycode 63 = F15
83 shift keycode 64 = F16
84 shift keycode 65 = F17
85 shift keycode 66 = F18
86 shift keycode 67 = F19
87 shift keycode 68 = F20
88 EOT
89 } | loadkeys -uv
90 sleep 1
91 ;;
92 (xterm*)
93 export TERM='xterm-color'
94 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
95 export TERM='screen-256color'
96 ;;
97 esac
98 mc \$@
100 EOF
102 chmod 755 $fs/usr/bin/mc.sh
103 chown -R root:root $fs
104 }