wok-next annotate mc/receipt @ rev 20050
Up scite (4.0.1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 23 13:19:31 2017 +0200 (2017-10-23) |
parents | f463de72afe3 |
children | e6615350078d |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="mc" |
psychomaniak@19871 | 4 VERSION="4.8.19" |
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" |
al@19605 | 9 WEB_SITE="http://midnight-commander.org/" |
al@17501 | 10 TAGS="file-manager text-editor" |
pankso@16181 | 11 HOST_ARCH="i486 arm" |
pascal@14999 | 12 |
al@19605 | 13 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19605 | 14 WGET_URL="http://ftp.midnight-commander.org/$TARBALL" |
al@19605 | 15 |
al@19605 | 16 SUGGESTED="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file" |
al@19605 | 17 DEPENDS="ncurses glib e2fsprogs util-linux-blkid libssh2 libssl libcrypto zlib pcre" |
al@19605 | 18 BUILD_DEPENDS="gpm-dev glib-dev ncurses-dev util-linux-mount-dev \ |
al@19605 | 19 util-linux-blkid-dev util-linux-uuid-dev check-dev gettext libssh2-dev" |
al@19605 | 20 |
al@19605 | 21 COOKOPTS="!menus" |
erjo@151 | 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 |
pankso@16181 | 28 ./configure \ |
al@19605 | 29 --enable-charset \ |
pankso@16181 | 30 --with-gpm-mouse \ |
pankso@16181 | 31 --with-screen=ncurses \ |
pankso@16181 | 32 --sysconfdir=/etc \ |
pankso@16181 | 33 $CONFIGURE_ARGS && |
pankso@16181 | 34 make && make install |
psychomaniak@18572 | 35 |
psychomaniak@18572 | 36 mkdir -p $install/usr/share/terminfo/s |
psychomaniak@18572 | 37 cp -a /usr/share/terminfo/s/screen-256color $install/usr/share/terminfo/s |
al@19605 | 38 |
al@19605 | 39 mkdir -p $install/usr/share/applications |
al@19605 | 40 cp $stuff/*.desktop $install/usr/share/applications |
al@19605 | 41 |
al@19605 | 42 install -m755 $stuff/mc.sh $install/usr/bin |
al@19605 | 43 |
al@19605 | 44 chown -R root:root $install |
erjo@151 | 45 } |
erjo@151 | 46 |
psychomaniak@17838 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 48 genpkg_rules() |
erjo@151 | 49 { |
al@19783 | 50 copy bin/ mc/ terminfo/ applications/ |
psychomaniak@17254 | 51 |
al@19605 | 52 sed -i 's#|profile|#&receipt|#' $fs/usr/share/mc/syntax/Syntax |
al@19605 | 53 sed -i 's/lzma -dc/lzcat/g' $fs/usr/libexec/mc/ext.d/archive.sh |
erjo@151 | 54 } |