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