# HG changeset patch # User Hans-G?nter Theisgen # Date 1680501203 -3600 # Node ID 93d377d13ba017b67bc92fcaf12c57b0f24c7412 # Parent 8655cec9785497167b850e94f7aee395d418a230 created recipe for lesspipe diff -r 8655cec97854 -r 93d377d13ba0 lesspipe/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lesspipe/description.txt Mon Apr 03 06:53:23 2023 +0100 @@ -0,0 +1,12 @@ +lesspipe.sh is an input filter for the pager less. +It is able to process a wide variety of file formats. +It enables users to deeply inspect archives and to +display the contents of files in archives without +having to unpack them before. That means file contents +can be properly interpreted even if the files are +compressed and contained in a hierarchy of archives +(often found in RPM or DEB archives containing source +tarballs). +The filter is easily extensible for new formats. +The input filter is a bash script, but works as well +as a zsh script. diff -r 8655cec97854 -r 93d377d13ba0 lesspipe/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lesspipe/receipt Mon Apr 03 06:53:23 2023 +0100 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="lesspipe" +VERSION="2.07" +CATEGORY="utilities" +TAGS="less" +SHORT_DESC="Input filter for less to better display files." +MAINTAINER="maintainer@slitaz.org" +LICENSE="GPL" +WEB_SITE="https://github.com/wofr06/lesspipe" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" + +SUGGESTED="bash" +DEPENDS="less" # busybox less ignores LESSOPEN variable + +HOST_ARCH="any" + +# Rules to configure and make the package. +compile_rules() +{ + # busybox rpm has no option v + patch --strip=0 --input=$stuff/patches/lesspipe.sh + + mkdir -p $install/usr/bin + cp lesspipe.sh $install/usr/bin/lesspipe +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_folders bin +} + +post_install() +{ + echo " +To activate lesspipe enter: +export LESSOPEN='|lesspipe %s'" +} diff -r 8655cec97854 -r 93d377d13ba0 lesspipe/stuff/patches/lesspipe.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lesspipe/stuff/patches/lesspipe.sh Mon Apr 03 06:53:23 2023 +0100 @@ -0,0 +1,11 @@ +--- lesspipe.sh.orig ++++ lesspipe.sh +@@ -668,7 +668,7 @@ + isrpm () { + if [[ -z "$2" ]]; then + if has_cmd rpm; then +- istemp "rpm -qivp" "$1" ++ istemp "rpm -qip" "$1" + contentline + [[ $1 == - ]] && set "$t" "$1" + fi