wok-current annotate mc/receipt @ rev 18571
Up: mc (4.8.15)
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Nov 10 22:13:13 2015 +0100 (2015-11-10) |
parents | 702e87e36a56 |
children | c12891d554ba |
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 |
erjo@151 | 34 } |
erjo@151 | 35 |
psychomaniak@17838 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 37 genpkg_rules() |
erjo@151 | 38 { |
psychomaniak@18571 | 39 mkdir -p $fs/usr/share/applications /usr/share/terminfo/s |
slaxemulator@14618 | 40 cp -a $install/etc $fs/ |
slaxemulator@14618 | 41 cp -a $install/usr/bin $fs/usr |
slaxemulator@14618 | 42 cp -a $install/usr/lib $fs/usr |
slaxemulator@14618 | 43 cp -a $install/usr/share/mc $fs/usr/share |
psychomaniak@17254 | 44 |
psychomaniak@17255 | 45 sed 's#|profile|#&receipt|#' -i $fs/usr/share/mc/syntax/Syntax |
psychomaniak@17902 | 46 sed 's/lzma -dc/lzcat/g' -i $fs/usr/lib/mc/ext.d/archive.sh |
psychomaniak@17254 | 47 cp -a $stuff/*.desktop $fs/usr/share/applications |
psychomaniak@18571 | 48 cp -a /usr/share/terminfo/s/screen-256color /usr/share/terminfo/s |
psychomaniak@18571 | 49 cat > $fs/usr/bin/mc.sh <<EOF |
psychomaniak@18571 | 50 case \$TERM in |
psychomaniak@18571 | 51 linux*) |
psychomaniak@18571 | 52 { |
psychomaniak@18571 | 53 cat <<EOT |
psychomaniak@18571 | 54 shift keycode 59 = F11 |
psychomaniak@18571 | 55 shift keycode 60 = F12 |
psychomaniak@18571 | 56 shift keycode 61 = F13 |
psychomaniak@18571 | 57 shift keycode 62 = F14 |
psychomaniak@18571 | 58 shift keycode 63 = F15 |
psychomaniak@18571 | 59 shift keycode 64 = F16 |
psychomaniak@18571 | 60 shift keycode 65 = F17 |
psychomaniak@18571 | 61 shift keycode 66 = F18 |
psychomaniak@18571 | 62 shift keycode 67 = F19 |
psychomaniak@18571 | 63 shift keycode 68 = F20 |
psychomaniak@18571 | 64 EOT |
psychomaniak@18571 | 65 } | loadkeys -uv ; sleep 1 ;; |
psychomaniak@18571 | 66 xterm*) |
psychomaniak@18571 | 67 export TERM='xterm-color' |
psychomaniak@18571 | 68 [ -f '/usr/share/terminfo/s/screen-256color' ] && \\ |
psychomaniak@18571 | 69 export TERM='screen-256color' ;; |
psychomaniak@18571 | 70 esac |
psychomaniak@18571 | 71 mc $@ |
psychomaniak@18571 | 72 |
psychomaniak@18571 | 73 EOF |
psychomaniak@18571 | 74 chmod 755 $fs/usr/bin/mc.sh |
psychomaniak@17254 | 75 chown -R root:root $fs |
erjo@151 | 76 } |