wok-next view mc/receipt @ rev 19978
Receipts v2: xmlrpc-c, yaml, zeromq.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 03:15:00 2017 +0300 (2017-10-18) |
parents | f463de72afe3 |
children | e6615350078d |
line source
1 # SliTaz package receipt.
3 PACKAGE="mc"
4 VERSION="4.8.19"
5 CATEGORY="system-tools"
6 SHORT_DESC="Midnight Commander - ncurses based file manager."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://midnight-commander.org/"
10 TAGS="file-manager text-editor"
11 HOST_ARCH="i486 arm"
13 TARBALL="$PACKAGE-$VERSION.tar.xz"
14 WGET_URL="http://ftp.midnight-commander.org/$TARBALL"
16 SUGGESTED="gpm xz cdrkit-isoinfo lynx w3m wv poppler-apps file"
17 DEPENDS="ncurses glib e2fsprogs util-linux-blkid libssh2 libssl libcrypto zlib pcre"
18 BUILD_DEPENDS="gpm-dev glib-dev ncurses-dev util-linux-mount-dev \
19 util-linux-blkid-dev util-linux-uuid-dev check-dev gettext libssh2-dev"
21 COOKOPTS="!menus"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/lzma -cd/lzcat/' $src/src/editor/edit.c
28 ./configure \
29 --enable-charset \
30 --with-gpm-mouse \
31 --with-screen=ncurses \
32 --sysconfdir=/etc \
33 $CONFIGURE_ARGS &&
34 make && make install
36 mkdir -p $install/usr/share/terminfo/s
37 cp -a /usr/share/terminfo/s/screen-256color $install/usr/share/terminfo/s
39 mkdir -p $install/usr/share/applications
40 cp $stuff/*.desktop $install/usr/share/applications
42 install -m755 $stuff/mc.sh $install/usr/bin
44 chown -R root:root $install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 copy bin/ mc/ terminfo/ applications/
52 sed -i 's#|profile|#&receipt|#' $fs/usr/share/mc/syntax/Syntax
53 sed -i 's/lzma -dc/lzcat/g' $fs/usr/libexec/mc/ext.d/archive.sh
54 }