wok annotate less/receipt @ rev 20634

linld: fix open()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 08 17:51:51 2019 +0100 (2019-01-08)
parents 9e01bc6321ea
children 558fa8758c4d
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"
pascal@14999 8 LICENSE="GPL3"
slaxemulator@11254 9 WEB_SITE="http://www.greenwoodsoftware.com/less"
slaxemulator@11254 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11254 11 WGET_URL="$WEB_SITE/$TARBALL"
slaxemulator@11254 12
slaxemulator@11254 13 DEPENDS="ncurses pcre"
slaxemulator@11254 14 BUILD_DEPENDS="ncurses-dev pcre-dev"
slaxemulator@11254 15
slaxemulator@11254 16 # Rules to configure and make the package.
slaxemulator@11254 17 compile_rules()
slaxemulator@11254 18 {
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 post_remove()
slaxemulator@11254 36 {
pascal@18730 37 ln -s /bin/busybox "$1/usr/bin/less"
slaxemulator@11254 38 }