diff options
author | Timothy Pollard <t.pollard.12@scu.edu.au> | 2010-05-11 20:01:30 +0200 |
---|---|---|
committer | Michiel van Wessem <michiel@slackbuilds.org> | 2010-05-11 20:01:30 +0200 |
commit | 0513e01a00b4bc30f53f03a8a96a7570b63c8d1a (patch) | |
tree | f658df352e37cbd036812fcf1e226caf89724dfe /network/claws-mail-extra-plugins | |
parent | f648a0e80139f70de949be0a6b1995c3f218f39c (diff) | |
download | slackbuilds-0513e01a00b4bc30f53f03a8a96a7570b63c8d1a.tar.gz |
network/claws-mail-extra-plugins: Added to 12.0 repository
Diffstat (limited to 'network/claws-mail-extra-plugins')
4 files changed, 167 insertions, 0 deletions
diff --git a/network/claws-mail-extra-plugins/README b/network/claws-mail-extra-plugins/README new file mode 100644 index 0000000000..88c4ec3e95 --- /dev/null +++ b/network/claws-mail-extra-plugins/README @@ -0,0 +1,31 @@ +This builds a package of extra plugins for the Claws-Mail email client. +These include: + +* acpi_notifier: Mail notification via LEDs on some laptops +* attachwarner: Warns about messages mentioning attachments that don't have + attachments. +* att_remover: Removes attachments from emails. +* cachesaver: Saves the cache to prevent loss of metadata on crashes. +* fetchinfo: Insets headers containing download info into emails. +* gtkhtml2_viewer: Renders HTML emails using the gtkhtml2 widget. +* mailmbox: Handles mbox format mailboxes. +* newmail: Writes email header summary to a log file. +* notification: Provides various ways to notify the user of new and unread mail. +* pdf_viewer: Displays PDF and PostScript using Poppler. +* perl: Allows the use of perl for message filtering. +* RSSyl: Allows you to read RSS newsfeeds. +* S/MIME: Handles S/MIME signed and/or encrypted emails. +* SynCE: Helps keep the address book of a Windows CD device in sync with Claw's + addressbook +* vCalendar: Allows VCalendar message handling like Evolution or Outlook + +Other Requirements: + Claws-Mail (obviously) available from SlackBuilds.org. + The notification plugin also recommends libnotify, which is available from + SlackBuilds.org. + The SynCE plugin requires libsynce and librapi2 both of which are available from + http://synce.sourceforge.net/synce/. + +Note: By default the package will include every plugin except SynCE; this can be +changed very easily in the script - it uses a list of plugins to be built, and +plugins can be added or removed easily enough. diff --git a/network/claws-mail-extra-plugins/claws-mail-extra-plugins.SlackBuild b/network/claws-mail-extra-plugins/claws-mail-extra-plugins.SlackBuild new file mode 100644 index 0000000000..307d20d516 --- /dev/null +++ b/network/claws-mail-extra-plugins/claws-mail-extra-plugins.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/sh + +# SlackBuild Script to build the extra plugins for claws mail + +# Copyright (c) 2007, Timothy Pollard +# +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without modification, +# are permitted provided that the following conditions are met: +# +# * Redistributions of source code must retain the above copyright notice, +# this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +# TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# Modified by Robby Workman <rworkman@slackbuilds.org> + +PRGNAM=claws-mail-extra-plugins +VERSION=3.3.1 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +# This is a *complete* list of available plugins +#PLUGIN_LIST="acpi_notifier att_remover attachwarner cachesaver \ +# fetchinfo-plugin gtkhtml2_viewer mailmbox newmail notification_plugin \ +# pdf_viewer perl_plugin rssyl smime spam_report synce_plugin vcalendar" + +# This is the list of plugins that the script will build by default +# Note that the synce_plugin is not included, as it requires two other +# library dependencies that are not available at SlackBuilds.org +PLUGIN_LIST="acpi_notifier att_remover attachwarner cachesaver \ + fetchinfo-plugin gtkhtml2_viewer mailmbox newmail notification_plugin \ + pdf_viewer perl_plugin rssyl smime spam_report vcalendar" + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i486" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +set -e # Exit on most errors + +rm -rf $PKG $TMP/$PRGNAM-$VERSION +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp README $PKG/usr/doc/$PRGNAM-$VERSION + +for plugin in $(echo $PLUGIN_LIST) ; do + ( echo "Building plugin: $plugin" + cd ./$plugin-* || exit 1 + + CFLAGS="$SLKCFLAGS" \ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --disable-static || exit 1 + + make || exit 1 + make install DESTDIR=$PKG || exit 1 + + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$plugin + for docfile in AUTHORS COPYING ChangeLog INSTALL NEWS README TODO ; do + [ -e $docfile ] && cp -a $docfile $PKG/usr/doc/$PRGNAM-$VERSION/$plugin + done + + echo "Finished building plugin: $plugin" + ) || exit 1 +done + +cp $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/ +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : \ + | xargs strip -- strip-unneeded 2> /dev/null + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : \ + | xargs strip -- strip-unneeded 2> /dev/null +) + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD.tgz diff --git a/network/claws-mail-extra-plugins/claws-mail-extra-plugins.info b/network/claws-mail-extra-plugins/claws-mail-extra-plugins.info new file mode 100644 index 0000000000..bd972972a7 --- /dev/null +++ b/network/claws-mail-extra-plugins/claws-mail-extra-plugins.info @@ -0,0 +1,8 @@ +PRGNAM="claws-mail-extra-plugins" +VERSION="3.3.1" +HOMEPAGE="http://www.claws-mail.org/" +DOWNLOAD="http://downloads.sourceforge.net/sylpheed-claws/claws-mail-extra-plugins-3.3.1.tar.bz2" +MD5SUM="ddd2e136308ca98838352e4010ad746b" +MAINTAINER="Timothy Pollard" +EMAIL="t.pollard.12@scu.edu.au" +APPROVED="Michiel"
\ No newline at end of file diff --git a/network/claws-mail-extra-plugins/slack-desc b/network/claws-mail-extra-plugins/slack-desc new file mode 100644 index 0000000000..6090f4acfd --- /dev/null +++ b/network/claws-mail-extra-plugins/slack-desc @@ -0,0 +1,18 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' on +# the right side marks the last column you can put a character in. You must make +# exactly 11 lines for the formatting to be correct. It's also customary to +# leave one space after the ':'. + |-----handy-ruler-----------------------------------| +claws-mail-extra-plugins: Extra Plugins for Claws-Mail +claws-mail-extra-plugins: +claws-mail-extra-plugins: This package includes 15 extra plugins for the +claws-mail-extra-plugins: Claws-Mail email client. Plugins range from an +claws-mail-extra-plugins: RSS reader to Perl message filtering. +claws-mail-extra-plugins: +claws-mail-extra-plugins: Check out the documentation directory or +claws-mail-extra-plugins: http://www.claws-mail.org for more details. +claws-mail-extra-plugins: +claws-mail-extra-plugins: +claws-mail-extra-plugins: |