extra/claws-mail to 3.17.4-4

This commit is contained in:
Kevin Mihelich 2019-11-21 00:18:39 +00:00
parent 5930d53d88
commit f8e68bc489
2 changed files with 37 additions and 3 deletions

View file

@ -5,7 +5,7 @@
pkgname=claws-mail
pkgver=3.17.4
pkgrel=3
pkgrel=4
pkgdesc="A GTK+ based e-mail client."
arch=('x86_64')
license=('GPL3')
@ -38,9 +38,11 @@ optdepends=('python: needed for some tools'
'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 <paul@claws-mail.org>
@ -69,10 +71,12 @@ package() {
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
}

View file

@ -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