wok annotate mc/receipt @ rev 23857
Up exiftool (12.00)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 17 10:08:20 2020 +0000 (2020-06-17) |
parents | 74dd7f0b1ca6 |
children | 241fb98cab1c |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="mc" |
Hans-G?nter@23168 | 4 VERSION="4.8.24" |
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 |
Hans-G?nter@23168 | 15 SUGGESTED="cdrkit-isoinfo file gpm lynx poppler-apps w3m wv xz" |
Hans-G?nter@21424 | 16 DEPENDS="e2fsprogs glib ncursesw util-linux-blkid" |
Hans-G?nter@23168 | 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 " |
Hans-G?nter@23168 | 19 |
psychomaniak@17254 | 20 GENERIC_MENUS="no" |
erjo@151 | 21 |
Hans-G?nter@21424 | 22 HOST_ARCH="i486 arm" |
Hans-G?nter@21424 | 23 |
erjo@151 | 24 # Rules to configure and make the package. |
erjo@151 | 25 compile_rules() |
erjo@151 | 26 { |
psychomaniak@17902 | 27 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c |
psychomaniak@17902 | 28 |
Hans-G?nter@21424 | 29 ./configure \ |
Hans-G?nter@21424 | 30 --prefix=/usr \ |
Hans-G?nter@21424 | 31 --with-gpm-mouse \ |
Hans-G?nter@21424 | 32 --with-screen=ncurses \ |
maniac@21665 | 33 --without-subshell \ |
Hans-G?nter@21424 | 34 --libexecdir=/usr/lib \ |
Hans-G?nter@21424 | 35 --sysconfdir=/etc \ |
pankso@16181 | 36 $CONFIGURE_ARGS && |
Hans-G?nter@21424 | 37 make -j 1 && |
Hans-G?nter@21424 | 38 make install |
psychomaniak@18572 | 39 |
psychomaniak@18572 | 40 mkdir -p $install/usr/share/terminfo/s |
Hans-G?nter@23168 | 41 cp -a /usr/share/terminfo/s/screen-256color \ |
Hans-G?nter@23168 | 42 $install/usr/share/terminfo/s |
erjo@151 | 43 } |
erjo@151 | 44 |
psychomaniak@17838 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 46 genpkg_rules() |
erjo@151 | 47 { |
psychomaniak@18572 | 48 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21424 | 49 |
Hans-G?nter@21424 | 50 cp -a $install/etc $fs/ |
Hans-G?nter@21424 | 51 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21424 | 52 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21424 | 53 cp -a $install/usr/share/mc $fs/usr/share |
Hans-G?nter@21424 | 54 cp -a $install/usr/share/terminfo $fs/usr/share |
psychomaniak@17254 | 55 |
Hans-G?nter@23168 | 56 sed -i 's#&) ||#) ||#' \ |
Hans-G?nter@23168 | 57 $fs/usr/lib/mc/ext.d/*.sh |
Hans-G?nter@23168 | 58 sed -i 's#|profile|#&receipt|#' \ |
Hans-G?nter@23168 | 59 $fs/usr/share/mc/syntax/Syntax |
Hans-G?nter@23168 | 60 sed -i 's/lzma -dc/lzcat/g' \ |
Hans-G?nter@23168 | 61 $fs/usr/lib/mc/ext.d/archive.sh |
Hans-G?nter@23168 | 62 |
Hans-G?nter@23168 | 63 cp -a $stuff/*.desktop $fs/usr/share/applications |
psychomaniak@18572 | 64 |
psychomaniak@18571 | 65 cat > $fs/usr/bin/mc.sh <<EOF |
psychomaniak@18571 | 66 case \$TERM in |
psychomaniak@18571 | 67 linux*) |
psychomaniak@18571 | 68 { |
psychomaniak@18571 | 69 cat <<EOT |
psychomaniak@18571 | 70 shift keycode 59 = F11 |
psychomaniak@18571 | 71 shift keycode 60 = F12 |
psychomaniak@18571 | 72 shift keycode 61 = F13 |
psychomaniak@18571 | 73 shift keycode 62 = F14 |
psychomaniak@18571 | 74 shift keycode 63 = F15 |
psychomaniak@18571 | 75 shift keycode 64 = F16 |
psychomaniak@18571 | 76 shift keycode 65 = F17 |
psychomaniak@18571 | 77 shift keycode 66 = F18 |
psychomaniak@18571 | 78 shift keycode 67 = F19 |
psychomaniak@18571 | 79 shift keycode 68 = F20 |
psychomaniak@18571 | 80 EOT |
psychomaniak@18571 | 81 } | loadkeys -uv ; sleep 1 ;; |
psychomaniak@18571 | 82 xterm*) |
psychomaniak@18571 | 83 export TERM='xterm-color' |
psychomaniak@18571 | 84 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\ |
psychomaniak@18571 | 85 export TERM='screen-256color' ;; |
psychomaniak@18571 | 86 esac |
psychomaniak@18575 | 87 mc \$@ |
psychomaniak@18571 | 88 |
psychomaniak@18571 | 89 EOF |
Hans-G?nter@21424 | 90 |
Hans-G?nter@23168 | 91 chmod 755 $fs/usr/bin/mc.sh |
Hans-G?nter@23168 | 92 chown -R root:root $fs |
erjo@151 | 93 } |