[ITP] lesspipe 2.13 - less pager input file preprocessor
Jon Turney
jon.turney@dronecode.org.uk
Sun Jun 23 14:01:23 GMT 2024
On 15/06/2024 16:11, Brian Inglis via Cygwin-apps wrote:
> [Forgot attachments]
>
> On 2024-06-14 23:22, Brian Inglis via Cygwin-apps wrote:
>> I would like to provide a Cygwin package for lesspipe, to automatically
>> show archive contents or information about many file types, with
>> enhanced or coloured output, without having to remember which filter
>> commands are required to do so, as I have been using it for many years.
Thanks, I added this to your packages.
> src_compile() {
> cd $S
> # cygautoreconf
What value does this comment have?
> lndirs
> cd $B
> # cygconf
Ditto.
> ./configure --prefix=/usr
> cygmake
> }
>
>
> src_install() {
> cd $B
> # install -D "${srcdir}"/lesspipe.sh "${pkgdir}"/etc/profile.d/lesspipe.sh
> # verbose cp lesspipe.sh $C/profile.d.sh
> # In bash, please preload the completion, dynamic invocation does not work
> # . /usr/share/bash-completion/less_completion
> # Or consider installing the file less_completion in /etc/bashcompletion.d [sic]
> dodir /etc/bash_completion.d
> insinto /etc/bash_completion.d
> doins less_completion
> cyginstall
> verbose rm -f $D/usr/share/bash-completion/less_completion
It seems like this might be more clearly sequenced:
* do standard install
* comment about the following steps
* remove completion file from non-working location
* install completion file in working location
or could the completion file just be moved post-install, from ${D}
/usr/share/bash-completion/ to ${D}/etc/bash_completion.d/ ?
> }
>
More information about the Cygwin-apps
mailing list