wok-next view less/receipt @ rev 12097

Add: sarg-php
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sun Mar 11 02:33:09 2012 +0100 (2012-03-11)
parents
children 2b9f96603415
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 WEB_SITE="http://www.greenwoodsoftware.com/less"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WGET_URL="$WEB_SITE/$TARBALL"
12 DEPENDS="ncurses pcre"
13 BUILD_DEPENDS="ncurses-dev pcre-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 --mandir=/usr/share/man \
23 --with-regex=pcre \
24 $CONFIGURE_ARGS &&
25 make && make prefix=$DESTDIR/usr mandir=$DESTDIR/usr/share/man install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr
32 cp -a $install/usr/bin $fs/usr
33 }
35 # Pre and post install commands for Tazpkg.
36 # We must remove all Busybox symlink before installing.
37 #
38 pre_install()
39 {
40 local root
41 root=$1
42 echo "Processing pre-install commands..."
43 echo -n "Removing all Busybox replaced utils... "
44 rm -f $root/usr/bin/less
45 status
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox $1/usr/bin/less
51 }