wok-current annotate mc/receipt @ rev 24622
updated graphviz, graphviz-dev and graphviz-doc (2.42.2 -> 3.0.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 07 16:02:21 2022 +0100 (2022-03-07) |
parents | b7a8bcb5d575 |
children | 2c7fdf85178f |
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 |
pascal@24453 | 24 # What is the latest version available today? |
pascal@24453 | 25 current_version() |
pascal@24453 | 26 { |
pascal@24453 | 27 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ |
pascal@24453 | 28 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24453 | 29 } |
pascal@24453 | 30 |
erjo@151 | 31 # Rules to configure and make the package. |
erjo@151 | 32 compile_rules() |
erjo@151 | 33 { |
psychomaniak@17902 | 34 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c |
psychomaniak@17902 | 35 |
Hans-G?nter@21424 | 36 ./configure \ |
Hans-G?nter@21424 | 37 --prefix=/usr \ |
Hans-G?nter@21424 | 38 --with-gpm-mouse \ |
Hans-G?nter@21424 | 39 --with-screen=ncurses \ |
maniac@21665 | 40 --without-subshell \ |
Hans-G?nter@21424 | 41 --libexecdir=/usr/lib \ |
Hans-G?nter@21424 | 42 --sysconfdir=/etc \ |
pankso@16181 | 43 $CONFIGURE_ARGS && |
Hans-G?nter@21424 | 44 make -j 1 && |
Hans-G?nter@21424 | 45 make install |
psychomaniak@18572 | 46 |
psychomaniak@18572 | 47 mkdir -p $install/usr/share/terminfo/s |
Hans-G?nter@23168 | 48 cp -a /usr/share/terminfo/s/screen-256color \ |
Hans-G?nter@23168 | 49 $install/usr/share/terminfo/s |
erjo@151 | 50 } |
erjo@151 | 51 |
psychomaniak@17838 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 53 genpkg_rules() |
erjo@151 | 54 { |
psychomaniak@18572 | 55 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21424 | 56 |
Hans-G?nter@21424 | 57 cp -a $install/etc $fs/ |
Hans-G?nter@21424 | 58 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21424 | 59 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21424 | 60 cp -a $install/usr/share/mc $fs/usr/share |
Hans-G?nter@21424 | 61 cp -a $install/usr/share/terminfo $fs/usr/share |
psychomaniak@17254 | 62 |
Hans-G?nter@23168 | 63 sed -i 's#&) ||#) ||#' \ |
Hans-G?nter@23168 | 64 $fs/usr/lib/mc/ext.d/*.sh |
Hans-G?nter@23168 | 65 sed -i 's#|profile|#&receipt|#' \ |
Hans-G?nter@23168 | 66 $fs/usr/share/mc/syntax/Syntax |
Hans-G?nter@23168 | 67 sed -i 's/lzma -dc/lzcat/g' \ |
Hans-G?nter@23168 | 68 $fs/usr/lib/mc/ext.d/archive.sh |
Hans-G?nter@23168 | 69 |
Hans-G?nter@23168 | 70 cp -a $stuff/*.desktop $fs/usr/share/applications |
psychomaniak@18572 | 71 |
psychomaniak@18571 | 72 cat > $fs/usr/bin/mc.sh <<EOF |
psychomaniak@18571 | 73 case \$TERM in |
psychomaniak@18571 | 74 linux*) |
psychomaniak@18571 | 75 { |
psychomaniak@18571 | 76 cat <<EOT |
psychomaniak@18571 | 77 shift keycode 59 = F11 |
psychomaniak@18571 | 78 shift keycode 60 = F12 |
psychomaniak@18571 | 79 shift keycode 61 = F13 |
psychomaniak@18571 | 80 shift keycode 62 = F14 |
psychomaniak@18571 | 81 shift keycode 63 = F15 |
psychomaniak@18571 | 82 shift keycode 64 = F16 |
psychomaniak@18571 | 83 shift keycode 65 = F17 |
psychomaniak@18571 | 84 shift keycode 66 = F18 |
psychomaniak@18571 | 85 shift keycode 67 = F19 |
psychomaniak@18571 | 86 shift keycode 68 = F20 |
psychomaniak@18571 | 87 EOT |
psychomaniak@18571 | 88 } | loadkeys -uv ; sleep 1 ;; |
psychomaniak@18571 | 89 xterm*) |
psychomaniak@18571 | 90 export TERM='xterm-color' |
psychomaniak@18571 | 91 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\ |
psychomaniak@18571 | 92 export TERM='screen-256color' ;; |
psychomaniak@18571 | 93 esac |
psychomaniak@18575 | 94 mc \$@ |
psychomaniak@18571 | 95 |
psychomaniak@18571 | 96 EOF |
Hans-G?nter@21424 | 97 |
Hans-G?nter@23168 | 98 chmod 755 $fs/usr/bin/mc.sh |
Hans-G?nter@23168 | 99 chown -R root:root $fs |
erjo@151 | 100 } |