wok view lesspipe/receipt @ rev 25682

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