wok view less/receipt @ rev 24693

updated jwm (2.3.7 -> 2.4.1)
author Hans-G?nter Theisgen
date Sun Mar 13 07:13:46 2022 +0100 (2022-03-13)
parents 0d3d26aa9e32
children 146694a9ddfa
line source
1 # SliTaz package receipt.
3 PACKAGE="less"
4 VERSION="551"
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"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/$TARBALL"
14 DEPENDS="ncurses pcre"
15 BUILD_DEPENDS="ncurses-dev pcre-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
21 sed '/been released for general use/!d;s|.*less-||;s| has.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc \
30 --mandir=/usr/share/man \
31 --with-regex=pcre \
32 $CONFIGURE_ARGS &&
33 make -j 1 &&
34 make install \
35 prefix=$DESTDIR/usr \
36 mandir=$DESTDIR/usr/share/man
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr
43 cp -a $install/usr/bin $fs/usr
44 }
46 post_remove()
47 {
48 ln -s /bin/busybox "$1/usr/bin/less"
49 }