wok-6.x view mc/receipt @ rev 25004
updated ntfs-3g and ntfs-3g-dev (2017.3.23 -> 2021.8.22)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 16:20:40 2022 +0100 (2022-05-16) |
parents | 241fb98cab1c |
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 ./configure \
37 CC=gcc-83 \
38 CXX=g++-83 \
39 --prefix=/usr \
40 --with-gpm-mouse \
41 --with-screen=ncurses \
42 --without-subshell \
43 --libexecdir=/usr/lib \
44 --sysconfdir=/etc \
45 $CONFIGURE_ARGS &&
46 make &&
47 make install
49 mkdir -p $install/usr/share/terminfo/s
50 cp -a /usr/share/terminfo/s/screen-256color \
51 $install/usr/share/terminfo/s
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 mkdir -p $fs/usr/share/applications
59 cp -a $install/etc $fs/
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/lib $fs/usr
62 cp -a $install/usr/share/mc $fs/usr/share
63 cp -a $install/usr/share/terminfo $fs/usr/share
65 sed -i 's#&) ||#) ||#' $fs/usr/lib/mc/ext.d/*.sh
66 sed -i 's#|profile|#&receipt|#' $fs/usr/share/mc/syntax/Syntax
67 sed -i 's/lzma -dc/lzcat/g' $fs/usr/lib/mc/ext.d/archive.sh
69 cp -a $stuff/*.desktop $fs/usr/share/applications
71 cat > $fs/usr/bin/mc.sh <<EOF
72 case \$TERM in
73 (linux*)
74 {
75 cat <<EOT
76 shift keycode 59 = F11
77 shift keycode 60 = F12
78 shift keycode 61 = F13
79 shift keycode 62 = F14
80 shift keycode 63 = F15
81 shift keycode 64 = F16
82 shift keycode 65 = F17
83 shift keycode 66 = F18
84 shift keycode 67 = F19
85 shift keycode 68 = F20
86 EOT
87 } | loadkeys -uv
88 sleep 1
89 ;;
90 (xterm*)
91 export TERM='xterm-color'
92 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
93 export TERM='screen-256color'
94 ;;
95 esac
96 mc \$@
98 EOF
100 chmod 755 $fs/usr/bin/mc.sh
101 chown -R root:root $fs
102 }