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