summaryrefslogtreecommitdiff
path: root/nonprism/sylpheed
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 01:57:36 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-04 01:57:36 -0300
commit0be822175bb3cef0534b9a0597e84ae1ee6374ec (patch)
treec9a4fb91c61309280fd8201c7cb52789ce02a7c6 /nonprism/sylpheed
parent468e115b1432c745ce9ccf06d2fcca6b3cfb7227 (diff)
remove nonprism suffix and add complex pkgrel on nonprism packages
Diffstat (limited to 'nonprism/sylpheed')
-rw-r--r--nonprism/sylpheed/PKGBUILD49
-rw-r--r--nonprism/sylpheed/nonprism.patch168
-rw-r--r--nonprism/sylpheed/sylpheed.install11
3 files changed, 228 insertions, 0 deletions
diff --git a/nonprism/sylpheed/PKGBUILD b/nonprism/sylpheed/PKGBUILD
new file mode 100644
index 000000000..5f1b17321
--- /dev/null
+++ b/nonprism/sylpheed/PKGBUILD
@@ -0,0 +1,49 @@
+# $Id: PKGBUILD 113099 2014-06-13 15:15:18Z speps $
+# Maintainer (Arch): speps <speps at aur dot archlinux dot org>
+# Contributor (Arch): Alexander Fehr <pizzapunk gmail com>
+# Contributor (Arch): dorphell <dorphell@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Aditya Som <icarious@hacari.org>"
+
+pkgname=sylpheed
+pkgver=3.4.2
+pkgrel=1.nonprism1
+pkgdesc="Lightweight and user-friendly e-mail client, without Gmail support"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://sylpheed.sraoss.jp/en/"
+license=('GPL')
+replaces=(${pkgname}-nonprism)
+conflicts=(${pkgname}-nonprism)
+depends=('compface' 'gpgme' 'gtkspell' 'desktop-file-utils')
+makedepends=('openssl')
+install="$pkgname.install"
+source=("http://sylpheed.sraoss.jp/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.bz2"
+ 'nonprism.patch')
+md5sums=('d4e53489763ff2cb575ab02890d91dc9'
+ 'e1bddc14962e607cdb899ec082660639')
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # Remove Gmail support
+ patch -Np1 -i "$srcdir/nonprism.patch"
+}
+
+build() {
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr \
+ --enable-ldap
+ make
+
+ # Build Attachment-Tool Plug-in
+ cd plugin/attachment_tool && make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir/" install
+
+ # Install Attachment-Tool Plug-in
+ cd plugin/attachment_tool
+ make DESTDIR="$pkgdir/" install-plugin
+}
diff --git a/nonprism/sylpheed/nonprism.patch b/nonprism/sylpheed/nonprism.patch
new file mode 100644
index 000000000..50d000634
--- /dev/null
+++ b/nonprism/sylpheed/nonprism.patch
@@ -0,0 +1,168 @@
+diff -Nur a/src/setup.c b/src/setup.c
+--- a/src/setup.c 2010-08-19 02:23:28.000000000 -0300
++++ b/src/setup.c 2013-10-23 15:10:24.439721307 -0200
+@@ -327,10 +327,6 @@
+ GtkWidget *cancel_btn;
+ GtkWidget *pop3_radio;
+ GtkWidget *imap_radio;
+-#if USE_SSL
+- GtkWidget *pop3g_radio;
+- GtkWidget *imapg_radio;
+-#endif
+ GtkWidget *name_entry;
+ GtkWidget *addr_entry;
+ GtkWidget *id_entry;
+@@ -378,15 +374,8 @@
+ {
+ SETUP_TYPE_POP3,
+ SETUP_TYPE_IMAP,
+-#if USE_SSL
+- SETUP_TYPE_POP3G,
+- SETUP_TYPE_IMAPG
+-#endif
+ };
+
+-#define GMAIL_POP3_SERVER "pop.gmail.com"
+-#define GMAIL_IMAP_SERVER "imap.gmail.com"
+-#define GMAIL_SMTP_SERVER "smtp.gmail.com"
+ #define POP3_PORT 110
+ #define IMAP_PORT 143
+ #define SMTP_PORT 25
+@@ -410,14 +399,6 @@
+ serv = gtk_entry_get_text(GTK_ENTRY(setupac.serv_entry));
+ smtp = gtk_entry_get_text(GTK_ENTRY(setupac.smtp_entry));
+
+-#if USE_SSL
+- if (setupac.type == SETUP_TYPE_POP3G ||
+- setupac.type == SETUP_TYPE_IMAPG) {
+- if (GTK_WIDGET(editable) == setupac.addr_entry)
+- gtk_entry_set_text(GTK_ENTRY(setupac.id_entry), addr);
+- }
+-#endif
+-
+ if (page == SETUP_PAGE_ADDRESS && name && *name && addr && *addr)
+ next_enable = TRUE;
+ else if (page == SETUP_PAGE_ACCOUNT &&
+@@ -436,8 +417,6 @@
+ p = str = gtk_entry_get_text(GTK_ENTRY(entry));
+ if (!str || *p == '\0')
+ return FALSE;
+- if (!strcmp(str, "(username)@gmail.com"))
+- return FALSE;
+
+ while (*p) {
+ c = *p;
+@@ -480,14 +459,6 @@
+ } else if (response_id == GTK_RESPONSE_ACCEPT) {
+ if (prev_page == SETUP_PAGE_ADDRESS) {
+ if (entry_is_valid(setupac.addr_entry)) {
+-#if USE_SSL
+- if (setupac.type == SETUP_TYPE_POP3G ||
+- setupac.type == SETUP_TYPE_IMAPG)
+- gtk_notebook_set_current_page
+- (GTK_NOTEBOOK(setupac.notebook),
+- SETUP_PAGE_FINISH);
+- else
+-#endif
+ gtk_notebook_set_current_page
+ (GTK_NOTEBOOK(setupac.notebook), page + 1);
+ } else
+@@ -508,10 +479,6 @@
+ if (prev_page == SETUP_PAGE_START) {
+ setupac.type = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(setupac.pop3_radio)) ? SETUP_TYPE_POP3
+ : gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(setupac.imap_radio)) ? SETUP_TYPE_IMAP
+-#if USE_SSL
+- : gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(setupac.pop3g_radio)) ? SETUP_TYPE_POP3G
+- : gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(setupac.imapg_radio)) ? SETUP_TYPE_IMAPG
+-#endif
+ : SETUP_TYPE_POP3;
+ }
+ } else if (response_id == GTK_RESPONSE_REJECT) {
+@@ -539,28 +506,6 @@
+ gtk_widget_set_sensitive(setupac.serv_entry, TRUE);
+ gtk_widget_set_sensitive(setupac.smtp_entry, TRUE);
+ break;
+-#if USE_SSL
+- case SETUP_TYPE_POP3G:
+- if (prev_page == SETUP_PAGE_START)
+- gtk_entry_set_text(GTK_ENTRY(setupac.addr_entry), "(username)@gmail.com");
+- gtk_widget_set_sensitive(setupac.id_entry, FALSE);
+- gtk_label_set_text(GTK_LABEL(setupac.serv_label_name1), _("POP3 server:"));
+- gtk_entry_set_text(GTK_ENTRY(setupac.serv_entry), GMAIL_POP3_SERVER);
+- gtk_widget_set_sensitive(setupac.serv_entry, FALSE);
+- gtk_entry_set_text(GTK_ENTRY(setupac.smtp_entry), GMAIL_SMTP_SERVER);
+- gtk_widget_set_sensitive(setupac.smtp_entry, FALSE);
+- break;
+- case SETUP_TYPE_IMAPG:
+- if (prev_page == SETUP_PAGE_START)
+- gtk_entry_set_text(GTK_ENTRY(setupac.addr_entry), "(username)@gmail.com");
+- gtk_widget_set_sensitive(setupac.id_entry, FALSE);
+- gtk_label_set_text(GTK_LABEL(setupac.serv_label_name1), _("IMAP4 server:"));
+- gtk_entry_set_text(GTK_ENTRY(setupac.serv_entry), GMAIL_IMAP_SERVER);
+- gtk_widget_set_sensitive(setupac.serv_entry, FALSE);
+- gtk_entry_set_text(GTK_ENTRY(setupac.smtp_entry), GMAIL_SMTP_SERVER);
+- gtk_widget_set_sensitive(setupac.smtp_entry, FALSE);
+- break;
+-#endif /* USE_SSL */
+ }
+ } else if (page == SETUP_PAGE_FINISH) {
+ prev_enable = FALSE;
+@@ -595,24 +540,6 @@
+ setupac.smtp_auth = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(setupac.smtpauth_chkbtn));
+ gtk_label_set_text(GTK_LABEL(setupac.serv_label_name2), _("IMAP4 server:"));
+ break;
+-#if USE_SSL
+- case SETUP_TYPE_POP3G:
+- setupac.serv_ssl = TRUE;
+- setupac.smtp_ssl = TRUE;
+- setupac.smtp_auth = TRUE;
+- setupac.serv_port = POP3S_PORT;
+- setupac.smtp_port = SMTPS_PORT;
+- gtk_label_set_text(GTK_LABEL(setupac.serv_label_name2), _("POP3 server:"));
+- break;
+- case SETUP_TYPE_IMAPG:
+- setupac.serv_ssl = TRUE;
+- setupac.smtp_ssl = TRUE;
+- setupac.smtp_auth = TRUE;
+- setupac.serv_port = IMAPS_PORT;
+- setupac.smtp_port = SMTPS_PORT;
+- gtk_label_set_text(GTK_LABEL(setupac.serv_label_name2), _("IMAP4 server:"));
+- break;
+-#endif /* USE_SSL */
+ }
+
+ GET_STR(name, name_entry);
+@@ -756,14 +683,6 @@
+ setupac.imap_radio = gtk_radio_button_new_with_label_from_widget
+ (GTK_RADIO_BUTTON(setupac.pop3_radio), "IMAP4");
+ gtk_box_pack_start(GTK_BOX(vbox), setupac.imap_radio, FALSE, FALSE, 0);
+-#if USE_SSL
+- setupac.pop3g_radio = gtk_radio_button_new_with_label_from_widget
+- (GTK_RADIO_BUTTON(setupac.pop3_radio), "POP3 (Gmail)");
+- gtk_box_pack_start(GTK_BOX(vbox), setupac.pop3g_radio, FALSE, FALSE, 0);
+- setupac.imapg_radio = gtk_radio_button_new_with_label_from_widget
+- (GTK_RADIO_BUTTON(setupac.pop3_radio), "IMAP4 (Gmail)");
+- gtk_box_pack_start(GTK_BOX(vbox), setupac.imapg_radio, FALSE, FALSE, 0);
+-#endif
+
+ /* Page 2 */
+ vbox = gtk_vbox_new(FALSE, 12);
+@@ -991,18 +910,6 @@
+ #endif
+ ac->imapport = setupac.serv_port;
+ break;
+-#if USE_SSL
+- case SETUP_TYPE_POP3G:
+- ac->protocol = A_POP3;
+- ac->ssl_pop = SSL_TUNNEL;
+- ac->popport = setupac.serv_port;
+- break;
+- case SETUP_TYPE_IMAPG:
+- ac->protocol = A_IMAP4;
+- ac->ssl_imap = SSL_TUNNEL;
+- ac->imapport = setupac.serv_port;
+- break;
+-#endif /* USE_SSL */
+ }
+
+ g_free(ac->sig_text);
diff --git a/nonprism/sylpheed/sylpheed.install b/nonprism/sylpheed/sylpheed.install
new file mode 100644
index 000000000..e111ef946
--- /dev/null
+++ b/nonprism/sylpheed/sylpheed.install
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}