wok view mc/receipt @ rev 25757

xfce4-mixer: modified CFLAGS
author Hans-G?nter Theisgen
date Sun Sep 01 14:44:29 2024 +0100 (2 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 gcc83-lib-base glib ncursesw util-linux-blkid"
17 BUILD_DEPENDS="gcc83 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 CC=gcc-83 \
42 CXX=g++-83 \
43 --prefix=/usr \
44 --with-gpm-mouse \
45 --with-screen=ncurses \
46 --without-subshell \
47 --libexecdir=/usr/lib \
48 --sysconfdir=/etc \
49 $CONFIGURE_ARGS &&
50 make &&
51 make install
53 mkdir -p $install/usr/share/terminfo/s
54 cp -a /usr/share/terminfo/s/screen-256color \
55 $install/usr/share/terminfo/s
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/share/applications
63 cp -a $install/etc $fs/
64 cp -a $install/usr/bin $fs/usr
65 cp -a $install/usr/lib $fs/usr
66 cp -a $install/usr/share/mc $fs/usr/share
67 cp -a $install/usr/share/terminfo $fs/usr/share
69 sed -i 's#&) ||#) ||#' $fs/usr/lib/mc/ext.d/*.sh
70 sed -i 's#|profile|#&receipt|#' $fs/usr/share/mc/syntax/Syntax
71 sed -i 's/lzma -dc/lzcat/g' $fs/usr/lib/mc/ext.d/archive.sh
73 cp -a $stuff/*.desktop $fs/usr/share/applications
75 cat > $fs/usr/bin/mc.sh <<EOF
76 case \$TERM in
77 (linux*)
78 {
79 cat <<EOT
80 shift keycode 59 = F11
81 shift keycode 60 = F12
82 shift keycode 61 = F13
83 shift keycode 62 = F14
84 shift keycode 63 = F15
85 shift keycode 64 = F16
86 shift keycode 65 = F17
87 shift keycode 66 = F18
88 shift keycode 67 = F19
89 shift keycode 68 = F20
90 EOT
91 } | loadkeys -uv
92 sleep 1
93 ;;
94 (xterm*)
95 export TERM='xterm-color'
96 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
97 export TERM='screen-256color'
98 ;;
99 esac
100 mc \$@
102 EOF
104 chmod 755 $fs/usr/bin/mc.sh
105 chown -R root:root $fs
106 }