On 2024-06-23 08:01, Jon Turney via Cygwin-apps wrote:
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.
Thanks Jon
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/ ?
These are all working copies for playground builds with original and
intermediate commands and notes from install scripts and messages.
I will clean up before merging into master and building a release.
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry