wok-next view less/receipt @ rev 17582

Add: libwebp 0.4.2
author Alexander Medvedev <devl547@gmail.com>
date Sun Feb 08 19:23:08 2015 +0000 (2015-02-08)
parents b9e94044b040
children 9e01bc6321ea
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 local root
42 root=$1
43 echo "Processing pre-install commands..."
44 echo -n "Removing all Busybox replaced utils... "
45 rm -f $root/usr/bin/less
46 status
47 }
49 post_remove()
50 {
51 ln -s /bin/busybox $1/usr/bin/less
52 }