wok view less/receipt @ rev 11623

amule, emelfm2, fpm2, gcolor2, gftp, grisbi; grsync, htop, hydrogen, kino, lingot, listpatron, lostirc, mitter, mplayer*, notecase, obconf, osmo, sakura, sylpheed, tilda, transmission, xine-ui, xsane: install .desktop file
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 24 22:51:41 2012 +0100 (2012-01-24)
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 }