Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#67562 - [nnn] package quicd scripts

Attached to Project: Community Packages
Opened by Pierre Carru (pierrec) - Wednesday, 12 August 2020, 13:07 GMT
Last edited by Maxim Baz (maximbaz) - Wednesday, 12 August 2020, 15:05 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Maxim Baz (maximbaz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Hi,

This patch packages the misc/quicd files for the cd on quit behaviour (see https://github.com/jarun/nnn/wiki/Basic-use-cases#configure-cd-on-quit )

```diff
Index: nnn/trunk/PKGBUILD
===================================================================
--- nnn/trunk/PKGBUILD (revision 676344)
+++ nnn/trunk/PKGBUILD (working copy)
@@ -45,5 +45,7 @@
install -Dm644 misc/auto-completion/bash/nnn-completion.bash "${pkgdir}/usr/share/bash-completion/completions/nnn"
install -Dm644 misc/auto-completion/zsh/_nnn "${pkgdir}/usr/share/zsh/site-functions/_nnn"

+ install -Dm644 -t "${pkgdir}/usr/share/nnn/quitcd" misc/quitcd/*
+
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
```

Cheers,
Pierre
This task depends upon

Closed by  Maxim Baz (maximbaz)
Wednesday, 12 August 2020, 15:05 GMT
Reason for closing:  Implemented
Additional comments about closing:  Done in 3.3-2, thanks again
Comment by Maxim Baz (maximbaz) - Wednesday, 12 August 2020, 13:55 GMT
Thanks for the suggestion, makes sense to me, I would also consider packaging all the plugins e.g. to /usr/share/nnn/plugins so that users could just symlink the plugins they want to use to ~/.config/nnn/plugins
Comment by Pierre Carru (pierrec) - Wednesday, 12 August 2020, 13:56 GMT
Right
I can make a patch
Comment by Pierre Carru (pierrec) - Wednesday, 12 August 2020, 14:12 GMT
Something like this?
I took the cp from https://lists.archlinux.org/pipermail/aur-general/2011-November/016778.html

```
Index: nnn/trunk/PKGBUILD
===================================================================
--- nnn/trunk/PKGBUILD (revision 676360)
+++ nnn/trunk/PKGBUILD (working copy)
@@ -45,5 +45,8 @@
install -Dm644 misc/auto-completion/bash/nnn-completion.bash "${pkgdir}/usr/share/bash-completion/completions/nnn"
install -Dm644 misc/auto-completion/zsh/_nnn "${pkgdir}/usr/share/zsh/site-functions/_nnn"

+ install -Dm644 -t "${pkgdir}/usr/share/nnn/quitcd" misc/quitcd/*
+ cp -dr --preserve=mode,timestamp plugins/ "${pkgdir}/usr/share/nnn/plugins"
+
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
```

Loading...