wok-current view mc/receipt @ rev 21596

audacity: variable LIBS set
author Hans-G?nter Theisgen
date Tue May 21 15:17:04 2019 +0100 (2019-05-21)
parents 6fa921084d5e
children 74dd7f0b1ca6
line source
1 # SliTaz package receipt.
3 PACKAGE="mc"
4 VERSION="4.8.22"
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="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file "
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 "
19 GENERIC_MENUS="no"
21 HOST_ARCH="i486 arm"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c
28 ./configure \
29 --prefix=/usr \
30 --with-gpm-mouse \
31 --with-screen=ncurses \
32 --libexecdir=/usr/lib \
33 --sysconfdir=/etc \
34 $CONFIGURE_ARGS &&
35 make -j 1 &&
36 make install
38 mkdir -p $install/usr/share/terminfo/s
39 cp -a /usr/share/terminfo/s/screen-256color $install/usr/share/terminfo/s
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr/share/applications
47 cp -a $install/etc $fs/
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/lib $fs/usr
50 cp -a $install/usr/share/mc $fs/usr/share
51 cp -a $install/usr/share/terminfo $fs/usr/share
53 sed 's#&) ||#) ||#' -i $fs/usr/lib/mc/ext.d/*.sh
54 sed 's#|profile|#&receipt|#' -i $fs/usr/share/mc/syntax/Syntax
55 sed 's/lzma -dc/lzcat/g' -i $fs/usr/lib/mc/ext.d/archive.sh
56 cp -a $stuff/*.desktop $fs/usr/share/applications
58 cat > $fs/usr/bin/mc.sh <<EOF
59 case \$TERM in
60 linux*)
61 {
62 cat <<EOT
63 shift keycode 59 = F11
64 shift keycode 60 = F12
65 shift keycode 61 = F13
66 shift keycode 62 = F14
67 shift keycode 63 = F15
68 shift keycode 64 = F16
69 shift keycode 65 = F17
70 shift keycode 66 = F18
71 shift keycode 67 = F19
72 shift keycode 68 = F20
73 EOT
74 } | loadkeys -uv ; sleep 1 ;;
75 xterm*)
76 export TERM='xterm-color'
77 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\
78 export TERM='screen-256color' ;;
79 esac
80 mc \$@
82 EOF
84 chmod 755 $fs/usr/bin/mc.sh
85 chown -R root:root $fs
86 }