wok annotate lesspipe/receipt @ rev 25803
Up libgit2 (1.8.4), libsde-utils (0.1.0-r1)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 12 15:28:00 2024 +0000 (2 days ago) |
parents | 2b069c72d47e |
children |
rev | line source |
---|---|
Hans-G?nter@25549 | 1 # SliTaz package receipt. |
Hans-G?nter@25549 | 2 |
Hans-G?nter@25549 | 3 PACKAGE="lesspipe" |
Hans-G?nter@25549 | 4 VERSION="2.07" |
Hans-G?nter@25549 | 5 CATEGORY="utilities" |
Hans-G?nter@25549 | 6 TAGS="less" |
Hans-G?nter@25549 | 7 SHORT_DESC="Input filter for less to better display files." |
Hans-G?nter@25549 | 8 MAINTAINER="maintainer@slitaz.org" |
Hans-G?nter@25549 | 9 LICENSE="GPL" |
Hans-G?nter@25549 | 10 WEB_SITE="https://github.com/wofr06/lesspipe" |
Hans-G?nter@25549 | 11 |
Hans-G?nter@25549 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@25549 | 13 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" |
Hans-G?nter@25549 | 14 |
Hans-G?nter@25549 | 15 SUGGESTED="bash" |
Hans-G?nter@25549 | 16 DEPENDS="less" # busybox less ignores LESSOPEN variable |
Hans-G?nter@25549 | 17 |
Hans-G?nter@25549 | 18 HOST_ARCH="any" |
Hans-G?nter@25549 | 19 |
pascal@25580 | 20 # What is the latest version available today? |
pascal@25580 | 21 current_version() |
pascal@25580 | 22 { |
pascal@25580 | 23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25600 | 24 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@25580 | 25 } |
pascal@25580 | 26 |
Hans-G?nter@25549 | 27 # Rules to configure and make the package. |
Hans-G?nter@25549 | 28 compile_rules() |
Hans-G?nter@25549 | 29 { |
Hans-G?nter@25549 | 30 # busybox rpm has no option v |
Hans-G?nter@25549 | 31 patch --strip=0 --input=$stuff/patches/lesspipe.sh |
Hans-G?nter@25549 | 32 |
Hans-G?nter@25549 | 33 mkdir -p $install/usr/bin |
Hans-G?nter@25549 | 34 cp lesspipe.sh $install/usr/bin/lesspipe |
Hans-G?nter@25549 | 35 } |
Hans-G?nter@25549 | 36 |
Hans-G?nter@25549 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
Hans-G?nter@25549 | 38 genpkg_rules() |
Hans-G?nter@25549 | 39 { |
Hans-G?nter@25549 | 40 cook_copy_folders bin |
Hans-G?nter@25549 | 41 } |
Hans-G?nter@25549 | 42 |
pascal@25580 | 43 # Post install/remove commands for Tazpkg. |
Hans-G?nter@25549 | 44 post_install() |
Hans-G?nter@25549 | 45 { |
Hans-G?nter@25549 | 46 echo " |
Hans-G?nter@25549 | 47 To activate lesspipe enter: |
Hans-G?nter@25549 | 48 export LESSOPEN='|lesspipe %s'" |
Hans-G?nter@25549 | 49 } |