network/claws-mail-extra-plugins: Added to 12.0 repository

This commit is contained in:
Timothy Pollard 2010-05-11 20:01:30 +02:00 committed by Michiel van Wessem
parent f648a0e801
commit 0513e01a00
4 changed files with 167 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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