2012-09-30 13:40:53 +02:00
|
|
|
# Template file for 'msmtp'
|
|
|
|
pkgname=msmtp
|
2015-01-06 12:51:13 +01:00
|
|
|
version=1.6.1
|
|
|
|
revision=1
|
2012-09-30 13:40:53 +02:00
|
|
|
build_style=gnu-configure
|
2013-04-19 16:55:16 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2014-03-18 06:19:46 +01:00
|
|
|
short_desc="A mini SMTP client"
|
2014-06-08 12:15:44 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-09-30 13:40:53 +02:00
|
|
|
homepage="http://msmtp.sourceforge.net"
|
|
|
|
license="GPL-3"
|
2015-01-02 15:34:20 +01:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
2015-01-06 12:51:13 +01:00
|
|
|
checksum=c45d47f2dc77484e3f74c0f66aef0d5d95de6c47ed71d9f926d86d546f8346f3
|
2013-04-14 04:24:51 +02:00
|
|
|
|
2013-04-19 16:55:16 +02:00
|
|
|
# Package build options
|
2014-07-14 14:31:53 +02:00
|
|
|
build_options="openssl gnutls idn sasl gnome"
|
|
|
|
build_options_default="openssl idn"
|
2013-04-19 16:55:16 +02:00
|
|
|
|
|
|
|
if [ "$build_option_openssl" ]; then
|
2015-01-06 12:51:13 +01:00
|
|
|
configure_args+=" --with-tls=openssl"
|
2015-01-03 10:56:10 +01:00
|
|
|
makedepends+=" libressl-devel>=2.1.2"
|
2013-04-19 16:55:16 +02:00
|
|
|
elif [ "$build_option_gnutls" ]; then
|
2015-01-06 12:51:13 +01:00
|
|
|
configure_args+=" --with-tls=gnutls"
|
2013-04-19 16:55:16 +02:00
|
|
|
makedepends+=" gnutls-devel"
|
|
|
|
else
|
2015-01-06 12:51:13 +01:00
|
|
|
configure_args+=" --with-tls=no"
|
2013-04-19 16:55:16 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_idn" ]; then
|
|
|
|
configure_args+=" --with-libidn"
|
|
|
|
makedepends+=" libidn-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --without-libidn"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_sasl" ]; then
|
|
|
|
configure_args+=" --with-libgsasl"
|
|
|
|
makedepends+=" gsasl-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --without-libgsasl"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gnome" ]; then
|
2015-01-02 15:34:20 +01:00
|
|
|
configure_args+=" --with-libsecret"
|
|
|
|
makedepends+=" libsecret-devel"
|
2013-04-19 16:55:16 +02:00
|
|
|
else
|
2015-01-02 15:34:20 +01:00
|
|
|
configure_args+=" --without-libsecret"
|
2013-04-19 16:55:16 +02:00
|
|
|
fi
|