wok diff less/receipt @ rev 14210
Up: firefox (17.0.4esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sat Mar 16 21:28:06 2013 +0100 (2013-03-16) |
parents | |
children | 2b9f96603415 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/less/receipt Sat Mar 16 21:28:06 2013 +0100 1.3 @@ -0,0 +1,51 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="less" 1.7 +VERSION="444" 1.8 +CATEGORY="base-system" 1.9 +SHORT_DESC="A terminal based program for viewing text files" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +WEB_SITE="http://www.greenwoodsoftware.com/less" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WGET_URL="$WEB_SITE/$TARBALL" 1.14 + 1.15 +DEPENDS="ncurses pcre" 1.16 +BUILD_DEPENDS="ncurses-dev pcre-dev" 1.17 + 1.18 +# Rules to configure and make the package. 1.19 +compile_rules() 1.20 +{ 1.21 + cd $src 1.22 + ./configure \ 1.23 + --prefix=/usr \ 1.24 + --sysconfdir=/etc \ 1.25 + --mandir=/usr/share/man \ 1.26 + --with-regex=pcre \ 1.27 + $CONFIGURE_ARGS && 1.28 + make && make prefix=$DESTDIR/usr mandir=$DESTDIR/usr/share/man install 1.29 +} 1.30 + 1.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.32 +genpkg_rules() 1.33 +{ 1.34 + mkdir -p $fs/usr 1.35 + cp -a $install/usr/bin $fs/usr 1.36 +} 1.37 + 1.38 +# Pre and post install commands for Tazpkg. 1.39 +# We must remove all Busybox symlink before installing. 1.40 +# 1.41 +pre_install() 1.42 +{ 1.43 + local root 1.44 + root=$1 1.45 + echo "Processing pre-install commands..." 1.46 + echo -n "Removing all Busybox replaced utils... " 1.47 + rm -f $root/usr/bin/less 1.48 + status 1.49 +} 1.50 + 1.51 +post_remove() 1.52 +{ 1.53 + ln -s /bin/busybox $1/usr/bin/less 1.54 +}