# Template file for 'claws-mail'
pkgname=claws-mail
version=3.12.0
revision=1
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config python-devel"
makedepends="gtk+-devel gpgme-devel gnutls-devel enchant-devel dbus-devel libetpan-devel pygtk-devel"
short_desc="An extensible and secure e-mail client / newsreader with classic GUI"
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
license="GPL-3"
homepage="http://claws-mail.org"
distfiles="http://www.claws-mail.org/download.php?file=releases/claws-mail-${version}.tar.gz"
checksum="fdc81352a30b4f82e50c6dd0bf5ccb28ea27133934e6dc6f1a8d34c270103b81"
nocross=yes

# TODO(dominikh): claws-mail is a mess. If we don't have python
# installed at all, the build process will fail, even if we don't want
# the python plugin. If we do have python installed, cross-compilation
# fails. It's probably possible to fix the configure script to
# cross-compile properly, but it's not worth the trouble. To me,
# anyway.

claws-mail-devel_package() {
	depends="${makedepends}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
