wok-next view less/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents 2b9f96603415
children d6ca18366f41
line source
1 # SliTaz package receipt.
3 PACKAGE="less"
4 VERSION="444"
5 CATEGORY="base-system"
6 SHORT_DESC="A terminal based program for viewing text files"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.greenwoodsoftware.com/less"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$WEB_SITE/$TARBALL"
13 DEPENDS="ncurses pcre"
14 BUILD_DEPENDS="ncurses-dev pcre-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --mandir=/usr/share/man \
24 --with-regex=pcre \
25 $CONFIGURE_ARGS &&
26 make && make prefix=$DESTDIR/usr mandir=$DESTDIR/usr/share/man install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/bin $fs/usr
34 }
36 # Pre and post install commands for Tazpkg.
37 # We must remove all Busybox symlink before installing.
38 #
39 pre_install()
40 {
41 echo "Processing pre-install commands..."
42 echo -n "Removing all Busybox replaced utils... "
43 rm -f "$1/usr/bin/less"
44 status
45 }
47 post_remove()
48 {
49 ln -s /bin/busybox "$1/usr/bin/less"
50 }