mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
From ponysay-git in AUR by "gtmanfred" with adaption to [erkin]'s last push, and uninstall rutine
This commit is contained in:
parent
fc2e89f44e
commit
a3677eae4a
2 changed files with 15 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -7,6 +7,8 @@ install:
|
|||
install "ponysay" "$(DESTDIR)/usr/bin/ponysay"
|
||||
install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater"
|
||||
ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink"
|
||||
install "zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"
|
||||
install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"
|
||||
|
||||
uninstall:
|
||||
rm -fr "$(DESTDIR)/usr/share/ponies"
|
||||
|
@ -14,3 +16,5 @@ uninstall:
|
|||
unlink "$(DESTDIR)/usr/bin/ponysay"
|
||||
unlink "$(DESTDIR)/usr/bin/ponysaytruncater"
|
||||
unlink "$(DESTDIR)/usr/bin/ponythink"
|
||||
unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"
|
||||
unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"
|
||||
|
|
11
completion/zsh-completion.zsh
Normal file
11
completion/zsh-completion.zsh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#compdef ponysay
|
||||
_shortopts=(
|
||||
'-v[Show version and exit]'
|
||||
'-h[Show this help and exit]'
|
||||
'-l[list ponyfiles]'
|
||||
'-f[Select a pony (either a filename or a ponyname]: :_path_files -W "/usr/share/ponies" -g "*(\:r)"'
|
||||
'-W[The screen column where the message should be wrapped]'
|
||||
)
|
||||
_arguments -s : \
|
||||
"$_shortopts[@]"
|
||||
|
Loading…
Reference in a new issue