Date: Wednesday, November 20, 2019 @ 19:35:53
  Author: andyrtr
Revision: 369498

upgpkg: claws-mail 3.17.4-4

remove useless kde template from wrong place, fix install tools variable usage 
- FS#64473; add bash-completion from upstream git repo

Added:
  claws-mail/trunk/bash_completion
Modified:
  claws-mail/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   10 +++++++---
 bash_completion |   30 ++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2019-11-20 19:08:30 UTC (rev 369497)
+++ PKGBUILD    2019-11-20 19:35:53 UTC (rev 369498)
@@ -2,7 +2,7 @@
 
 pkgname=claws-mail
 pkgver=3.17.4
-pkgrel=3
+pkgrel=4
 pkgdesc="A GTK+ based e-mail client."
 arch=('x86_64')
 license=('GPL3')
@@ -35,9 +35,11 @@
             'gumbo-parser:      for litehtml plugin')
 provides=('claws')
 
source=(https://www.claws-mail.org/download.php?file=releases/claws-mail-$pkgver.tar.xz{,.asc}
+        bash_completion
         libetpan-1.9.4.diff)
 sha256sums=('590ed1131e51b3a627e75c3b256068f5176a498628e1c8f3315b9bc09482ae02'
             'SKIP'
+            '3f6c248b8658cd7a62186bff572cce2525712a498f363cbbda1ed459021c28cb'
             '3036472834f02d15253d8ebebf38b977b06e3a68593eb0f4f6d9849a06137952')
 validpgpkeys=('8B3B297A03468356692F8D592CD716D654D6BBD4') # Paul 
<[email protected]>
 
@@ -66,10 +68,12 @@
   cd "${pkgname}"-${pkgver}
   make DESTDIR="${pkgdir}" install
 
+  install -Dm 644 "$srcdir"/bash_completion 
"${pkgdir}"/usr/share/bash-completion/completions/claws-mail
+
   # install extra tools
   cd tools
   install -m755 -d "${pkgdir}"/usr/lib/claws-mail/tools
-  for files in *.pl *.py *.sh kdeservicemenu multiwebsearch.conf tb2claws-mail 
update-po uudec uuooffice README; do
-    cp -arv $files "${pkgdir}"/usr/lib/claws-mail/tools/${i}
+  for files in *.pl *.py *.sh *.conf tb2claws-mail update-po uudec uuooffice 
README; do
+    cp -arv $files "${pkgdir}"/usr/lib/claws-mail/tools/
   done
 }

Added: bash_completion
===================================================================
--- bash_completion                             (rev 0)
+++ bash_completion     2019-11-20 19:35:53 UTC (rev 369498)
@@ -0,0 +1,30 @@
+# claws-mail(1) completion
+_claws-mail()
+{
+       local cur prev words cword
+       _init_completion || return
+
+       case $prev in
+       --help|-h|--version|-v|--version-full|-V)
+               return
+               ;;
+       --alternate-config-dir)
+               COMPREPLY=( $( find . -maxdepth 2 -name clawsrc | sed 
's,/clawsrc,,' ) )
+               return
+               ;;
+       --select|--status|--status-full)
+               _filedir -d
+               return
+               ;;
+       --compose-from-file|--attach)
+               _filedir
+               return
+               ;;
+       esac
+
+       if [[ $cur == -* ]]; then
+               COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
+               return
+       fi
+} &&
+complete -F _claws-mail claws-mail

Reply via email to