wok-next annotate less/receipt @ rev 12042

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