# Compiling time: 0.88 SBU
# Maintainer: Anthony Jorion <pingax@frugalware.org
# Contributor: Devil505 <devil505linux@gmail.com>
# Contributor: Bence Nagy <nagybence@tipogral.hu>

options+=('asneeded')

pkgname=sylpheed
pkgver=3.4.3
_F_archive_ver=3.4.3
branch=3.4
pkgrel=1
pkgdesc="A GTK+ based, lightweight, and fast email client"
url="http://sylpheed.sraoss.jp"
groups=('xapps-extra')
archs=('i686' 'x86_64')
options=('scriptlet')
depends=('gpgme' 'libldap>=2.4.31' 'gtkspell>=2.0.16-11' 'libxcb' 'freetype2' 'glib2>=2.32.4' 'dbus-glib')
makedepends=('openldap>=2.4.31')
source=($url/$pkgname/v$branch/$pkgname-$_F_archive_ver.tar.gz)
up2date="lynx -dump $url/en | grep "Version" | sed -e 's/.* \([0-9\.]\)/\1/'"
sha1sums=('01ee4f04e1e3df213995961c358be451888953e5')

build() {
	Fcd

	# glib2 fix
	sed -i '/glibconfig/d' libsylph/defs.h || Fdie

	Fbuild --enable-ssl --enable-gpgme --enable-ldap
	Ffilerel /usr/share/pixmaps/sylpheed.png
	Ffilerel /usr/share/applications/sylpheed.desktop
}


# optimization OK
