#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=claws-mail
pkgver=3.9.2
pkgrel=1gv
source=("http://heanet.dl.sourceforge.net/sourceforge/sylpheed-claws/claws-mail-$pkgver.tar.bz2" "http://www.claws-mail.org/download.php?file=themes/png/claws-mail-theme_gnome-brave.tar.gz")
url="http://www.claws-mail.org/"
docs=('ABOUT-NLS' 'AUTHORS' 'ChangeLog' 'COPYING' 'INSTALL' 'NEWS' 'README' 'TODO')

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Claws Mail (A GTK+ based, lightweight, and fast e-mail client)."
"Claws Mail - it bites! A GTK+ based, lightweight, and fast e-mail"
"client and newsreader. Supports POP3, APOP, IMAP, SMTP,AUTH, NNTP,"
"LDAP. Features multiple accounts, spell-checking, address book SSL,"
"GPG/PGP, filtering, scoring, i18n, & more."
)

build() {
	# default theme
	cd $startdir/src/
	mkdir -p $startdir/pkg/usr/share/claws-mail/themes/
	cp -R gnome-brave $startdir/pkg/usr/share/claws-mail/themes/ || return 1
	cd $startdir/src/${pkgname}-${pkgver}

	./configure \
	  --prefix=/usr \
	  --libdir=/usr/lib${LIBDIRSUFFIX} \
	  --mandir=/usr/man \
	  --docdir=/usr/doc/$pkgname-$pkgver \
	  --disable-static \
	  --disable-spamassassin-plugin \
	  --disable-dillo-viewer-plugin \
	  --disable-jpilot \
	  --disable-gnomeprint
	make -j $numjobs || return 1
	make DESTDIR=$startdir/pkg/ install
}