wok-current annotate mc/receipt @ rev 23140
updated lm-sensors and lm-sensors-dev (3.5.0 -> 3.6.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 15 07:01:36 2020 +0100 (2020-03-15) |
parents | fbb5bc751677 |
children | b7a8bcb5d575 |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="mc" |
Hans-G?nter@21424 | 4 VERSION="4.8.22" |
pankso@202 | 5 CATEGORY="system-tools" |
Hans-G?nter@21424 | 6 TAGS="file-manager text-editor" |
erjo@151 | 7 SHORT_DESC="Midnight Commander - ncurses based file manager." |
erjo@784 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
Hans-G?nter@21424 | 10 WEB_SITE="https://www.midnight-commander.org/" |
Hans-G?nter@21424 | 11 |
pascal@14999 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
Hans-G?nter@21424 | 13 WGET_URL="http://ftp.midnight-commander.org/$TARBALL" |
pascal@14999 | 14 |
psychomaniak@18571 | 15 SUGGESTED="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file " |
Hans-G?nter@21424 | 16 DEPENDS="e2fsprogs glib ncursesw util-linux-blkid" |
Hans-G?nter@21424 | 17 BUILD_DEPENDS="glib-dev gpm-dev ncursesw-dev ncurses-extra \ |
Hans-G?nter@21424 | 18 util-linux-blkid-dev util-linux-mount-dev util-linux-uuid-dev " |
psychomaniak@17254 | 19 GENERIC_MENUS="no" |
erjo@151 | 20 |
Hans-G?nter@21424 | 21 HOST_ARCH="i486 arm" |
Hans-G?nter@21424 | 22 |
erjo@151 | 23 # Rules to configure and make the package. |
erjo@151 | 24 compile_rules() |
erjo@151 | 25 { |
psychomaniak@17902 | 26 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c |
psychomaniak@17902 | 27 |
Hans-G?nter@21424 | 28 ./configure \ |
Hans-G?nter@21424 | 29 --prefix=/usr \ |
Hans-G?nter@21424 | 30 --with-gpm-mouse \ |
Hans-G?nter@21424 | 31 --with-screen=ncurses \ |
maniac@21665 | 32 --without-subshell \ |
Hans-G?nter@21424 | 33 --libexecdir=/usr/lib \ |
Hans-G?nter@21424 | 34 --sysconfdir=/etc \ |
pankso@16181 | 35 $CONFIGURE_ARGS && |
Hans-G?nter@21424 | 36 make -j 1 && |
Hans-G?nter@21424 | 37 make install |
psychomaniak@18572 | 38 |
psychomaniak@18572 | 39 mkdir -p $install/usr/share/terminfo/s |
psychomaniak@18572 | 40 cp -a /usr/share/terminfo/s/screen-256color $install/usr/share/terminfo/s |
erjo@151 | 41 } |
erjo@151 | 42 |
psychomaniak@17838 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 44 genpkg_rules() |
erjo@151 | 45 { |
psychomaniak@18572 | 46 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21424 | 47 |
Hans-G?nter@21424 | 48 cp -a $install/etc $fs/ |
Hans-G?nter@21424 | 49 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21424 | 50 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21424 | 51 cp -a $install/usr/share/mc $fs/usr/share |
Hans-G?nter@21424 | 52 cp -a $install/usr/share/terminfo $fs/usr/share |
psychomaniak@17254 | 53 |
psychomaniak@18649 | 54 sed 's#&) ||#) ||#' -i $fs/usr/lib/mc/ext.d/*.sh |
psychomaniak@17255 | 55 sed 's#|profile|#&receipt|#' -i $fs/usr/share/mc/syntax/Syntax |
psychomaniak@17902 | 56 sed 's/lzma -dc/lzcat/g' -i $fs/usr/lib/mc/ext.d/archive.sh |
psychomaniak@17254 | 57 cp -a $stuff/*.desktop $fs/usr/share/applications |
psychomaniak@18572 | 58 |
psychomaniak@18571 | 59 cat > $fs/usr/bin/mc.sh <<EOF |
psychomaniak@18571 | 60 case \$TERM in |
psychomaniak@18571 | 61 linux*) |
psychomaniak@18571 | 62 { |
psychomaniak@18571 | 63 cat <<EOT |
psychomaniak@18571 | 64 shift keycode 59 = F11 |
psychomaniak@18571 | 65 shift keycode 60 = F12 |
psychomaniak@18571 | 66 shift keycode 61 = F13 |
psychomaniak@18571 | 67 shift keycode 62 = F14 |
psychomaniak@18571 | 68 shift keycode 63 = F15 |
psychomaniak@18571 | 69 shift keycode 64 = F16 |
psychomaniak@18571 | 70 shift keycode 65 = F17 |
psychomaniak@18571 | 71 shift keycode 66 = F18 |
psychomaniak@18571 | 72 shift keycode 67 = F19 |
psychomaniak@18571 | 73 shift keycode 68 = F20 |
psychomaniak@18571 | 74 EOT |
psychomaniak@18571 | 75 } | loadkeys -uv ; sleep 1 ;; |
psychomaniak@18571 | 76 xterm*) |
psychomaniak@18571 | 77 export TERM='xterm-color' |
psychomaniak@18571 | 78 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\ |
psychomaniak@18571 | 79 export TERM='screen-256color' ;; |
psychomaniak@18571 | 80 esac |
psychomaniak@18575 | 81 mc \$@ |
psychomaniak@18571 | 82 |
psychomaniak@18571 | 83 EOF |
Hans-G?nter@21424 | 84 |
psychomaniak@18571 | 85 chmod 755 $fs/usr/bin/mc.sh |
psychomaniak@17254 | 86 chown -R root:root $fs |
erjo@151 | 87 } |