wok-next annotate mc/receipt @ rev 18481
bash: post_install() not [ fails ] when you refuse to make bash default
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 08 04:06:36 2015 +0300 (2015-10-08) |
parents | d12ce34a0d9a |
children | 1a6705a92d7c |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="mc" |
psychomaniak@17837 | 4 VERSION="4.8.14" |
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 |
pankso@16181 | 15 SUGGESTED="gpm" |
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@17838 | 18 util-linux-blkid-dev util-linux-uuid-dev" |
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@17254 | 39 mkdir -p $fs/usr/share/applications |
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@17254 | 48 chown -R root:root $fs |
erjo@151 | 49 } |