wok annotate less/receipt @ rev 25669
Up lapack (3.12.0), less (633), libarchive (3.7.2), liblouis (3.28.0), libmicrohttpd (1.0.1), libpng (1.6.43), libssh (0.10.6), libtasn1 (4.19.0), libtirpc (1.3.4), libvpx (1.14.0), libwebp (1.3.2), logrotate (3.21.0), lua (5.4.6)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 25 16:11:20 2024 +0000 (11 months ago) |
parents | 146694a9ddfa |
children |
rev | line source |
---|---|
slaxemulator@11254 | 1 # SliTaz package receipt. |
slaxemulator@11254 | 2 |
slaxemulator@11254 | 3 PACKAGE="less" |
pascal@25669 | 4 VERSION="633" |
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" |
Hans-G?nter@24712 | 9 WEB_SITE="https://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@24712 | 33 make && |
Hans-G?nter@24712 | 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 { |
Hans-G?nter@24712 | 42 cook_copy_folders bin |
slaxemulator@11254 | 43 } |
slaxemulator@11254 | 44 |
slaxemulator@11254 | 45 post_remove() |
slaxemulator@11254 | 46 { |
Hans-G?nter@24712 | 47 ln -s /bin/busybox "$1/usr/bin/less" |
slaxemulator@11254 | 48 } |