initial import
This commit is contained in:
70
claws-mail-gtk2/PKGBUILD
Normal file
70
claws-mail-gtk2/PKGBUILD
Normal file
@@ -0,0 +1,70 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=claws-mail-gtk2
|
||||
realpkgname=claws-mail
|
||||
pkgver=3.19.1
|
||||
pkgrel=2
|
||||
pkgdesc="A GTK+2 based e-mail client"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL-3')
|
||||
conflicts=('claws-mail')
|
||||
provides=('claws-mail')
|
||||
url='https://www.claws-mail.org'
|
||||
depends=('gtk2' 'gnutls' 'startup-notification' 'enchant' 'gpgme'
|
||||
'libetpan' 'compface' 'libsm')
|
||||
makedepends=('poppler-glib' 'libytnef' 'libical'
|
||||
'bogofilter' 'valgrind' 'dillo' 'python' 'gumbo-parser' 'intltool' 'gettext-tiny')
|
||||
optdepends=('perl: needed for perl plugin'
|
||||
'bogofilter: adds support for spamfiltering'
|
||||
'libxml2: for rssyl plugins'
|
||||
'curl: for vcalendar, rssyl and spamreport plugins'
|
||||
'libarchive: for archive plugin and various other plugins'
|
||||
'libytnef: for tnef_parse plugin'
|
||||
'poppler-glib: for pdf viewer plugin'
|
||||
'ghostscript: for pdf viewer plugin'
|
||||
'libical: for vcalendar plugin'
|
||||
'dillo: for html viewer plugin'
|
||||
'gumbo-parser: for litehtml plugin')
|
||||
source=("https://www.claws-mail.org/releases/${realpkgname}-${pkgver}.tar.gz"
|
||||
"bash_completion"
|
||||
"rework-defs.patch"
|
||||
"uintptr_t.patch")
|
||||
sha512sums=('f32eecb68162163eda707457dd98fecdc7c0a4b040521e2e789507e74fdcd35f0de3b6c6ced45cfc7d98278327ab9dfc5ebd3a43de856702ad0efb2cbaab3a35'
|
||||
'4779669133d077aaa52fc171d693b7ba93208cbc6fee5234550aa3f66ec12e5a5d200aab420ab9ceff65a9509cab3f643280b7b64a35d085d1e64a202d9f7c28'
|
||||
'327d4c8f065405108391f7baf9af0c57db8294dc2da3df58cab2031a748414da3a959a51aad78797a61fde541dda30a99be6669f5ba57317b854ff0bc5e66188'
|
||||
'bfa5911070d60fb979fce6776aa416b2a6bc0fec7a174b40698f3b8ced57fb2cc6235ba4209ffe1fe8a513e297f67aa804dd01f7d1414df7619c9c8622fabe17')
|
||||
|
||||
prepare() {
|
||||
cd "${realpkgname}"-${pkgver}
|
||||
patch -Np1 -i ${srcdir}/rework-defs.patch
|
||||
patch -Np0 < ${srcdir}/uintptr_t.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "${realpkgname}"-${pkgver}
|
||||
./configure --prefix=/usr --disable-static \
|
||||
--enable-enchant \
|
||||
--enable-gnutls \
|
||||
--enable-ldap \
|
||||
--enable-crash-dialog \
|
||||
--enable-pgpmime-plugin \
|
||||
--enable-bogofilter-plugin \
|
||||
--disable-dbus \
|
||||
--disable-networkmanager \
|
||||
--disable-gdata-plugin \
|
||||
--disable-notification-plugin \
|
||||
--disable-spamassassin-plugin \
|
||||
--disable-fancy-plugin
|
||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${realpkgname}"-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
install -Dm 644 "$srcdir"/bash_completion "${pkgdir}"/usr/share/bash-completion/completions/claws-mail
|
||||
|
||||
# license
|
||||
install -Dm644 "${srcdir}/${realpkgname}-${pkgver}/COPYING" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
30
claws-mail-gtk2/bash_completion
Normal file
30
claws-mail-gtk2/bash_completion
Normal 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
|
||||
13
claws-mail-gtk2/rework-defs.patch
Normal file
13
claws-mail-gtk2/rework-defs.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
--- a/src/common/defs.h 2020-10-19 12:37:56.000000000 +0200
|
||||
+++ b/src/common/defs.h 2021-09-22 01:14:47.507010589 +0200
|
||||
@@ -120,8 +120,8 @@
|
||||
/* #define DEFAULT_INC_PATH "/usr/bin/imget" */
|
||||
/* #define DEFAULT_INC_PROGRAM "imget" */
|
||||
#define DEFAULT_SENDMAIL_CMD "/usr/sbin/sendmail -t -i"
|
||||
-#define DEFAULT_BROWSER_CMD "firefox '%s'"
|
||||
-#define DEFAULT_EDITOR_CMD "gedit '%s'"
|
||||
+#define DEFAULT_BROWSER_CMD "iceweasel-uxp '%s'"
|
||||
+#define DEFAULT_EDITOR_CMD "l3afpad '%s'"
|
||||
#define DEFAULT_MIME_CMD "metamail -d -b -x -c %s '%s'"
|
||||
#define DEFAULT_IMAGE_VIEWER_CMD "display '%s'"
|
||||
#define DEFAULT_AUDIO_PLAYER_CMD "play '%s'"
|
||||
12
claws-mail-gtk2/uintptr_t.patch
Normal file
12
claws-mail-gtk2/uintptr_t.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff -up ./src/plugins/litehtml_viewer/litehtml/os_types.h.orig ./src/plugins/litehtml_viewer/litehtml/os_types.h
|
||||
--- ./src/plugins/litehtml_viewer/litehtml/os_types.h.orig 2023-08-09 16:55:51.309999999 -0600
|
||||
+++ ./src/plugins/litehtml_viewer/litehtml/os_types.h 2023-08-09 16:56:35.029999999 -0600
|
||||
@@ -1,6 +1,8 @@
|
||||
#ifndef LH_OS_TYPES_H
|
||||
#define LH_OS_TYPES_H
|
||||
|
||||
+#include <cstdint>
|
||||
+
|
||||
namespace litehtml
|
||||
{
|
||||
#if defined( WIN32 ) || defined( _WIN32 ) || defined( WINCE )
|
||||
Reference in New Issue
Block a user