47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# Template file for 'msmtp'
|
|
pkgname=msmtp
|
|
version=1.6.1
|
|
revision=2
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config"
|
|
short_desc="A mini SMTP client"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://msmtp.sourceforge.net"
|
|
license="GPL-3"
|
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=c45d47f2dc77484e3f74c0f66aef0d5d95de6c47ed71d9f926d86d546f8346f3
|
|
|
|
# Package build options
|
|
build_options="openssl gnutls idn sasl gnome"
|
|
build_options_default="openssl idn"
|
|
|
|
if [ "$build_option_openssl" ]; then
|
|
configure_args+=" --with-tls=openssl"
|
|
makedepends+=" libressl-devel>=2.1.3"
|
|
elif [ "$build_option_gnutls" ]; then
|
|
configure_args+=" --with-tls=gnutls"
|
|
makedepends+=" gnutls-devel"
|
|
else
|
|
configure_args+=" --with-tls=no"
|
|
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
|
|
configure_args+=" --with-libsecret"
|
|
makedepends+=" libsecret-devel"
|
|
else
|
|
configure_args+=" --without-libsecret"
|
|
fi
|