2013-11-18 22:47:33 +00:00
|
|
|
# Template file for 'mutt'
|
|
|
|
pkgname=mutt
|
2014-03-13 08:06:53 +00:00
|
|
|
version=1.5.23
|
2015-01-22 11:09:32 +00:00
|
|
|
revision=8
|
2013-11-18 22:47:33 +00:00
|
|
|
build_style=gnu-configure
|
2013-11-19 09:16:25 +00:00
|
|
|
configure_args="--enable-pop --enable-imap --enable-smtp
|
2014-11-07 15:09:26 +00:00
|
|
|
--enable-gpgme --with-regex --with-idn --with-ssl --with-sasl
|
2014-07-12 18:04:28 +00:00
|
|
|
--with-gpgme-prefix=${XBPS_CROSS_BASE}/usr
|
2013-11-19 09:16:25 +00:00
|
|
|
--with-gdbm=${XBPS_CROSS_BASE}/usr mutt_cv_regex_broken=no"
|
2014-07-12 18:04:28 +00:00
|
|
|
hostmakedepends="perl pkg-config libidn-devel automake"
|
2015-01-22 11:09:32 +00:00
|
|
|
makedepends="ncurses-devel libressl-devel>=2.1.3 libidn-devel gpgme-devel gdbm-devel
|
2014-12-01 00:01:12 +00:00
|
|
|
libsasl-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="mime-types"
|
|
|
|
conf_files="/etc/Muttrc"
|
2013-11-18 22:47:33 +00:00
|
|
|
short_desc="The Mutt Mail Client"
|
|
|
|
maintainer="Jan S. <jan.schreib@gmail.com>"
|
|
|
|
license="GPL-2"
|
2013-11-19 09:16:25 +00:00
|
|
|
homepage="http://www.mutt.org"
|
2014-05-26 11:13:26 +00:00
|
|
|
distfiles="https://bitbucket.org/${pkgname}/${pkgname}/downloads/${pkgname}-${version}.tar.gz"
|
2014-03-13 08:06:53 +00:00
|
|
|
checksum=3af0701e57b9e1880ed3a0dee34498a228939e854a16cdccd24e5e502626fd37
|
2013-11-18 22:47:33 +00:00
|
|
|
|
2014-07-12 18:04:28 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="trash sidebar"
|
|
|
|
desc_option_trash="apply trash folder patch"
|
|
|
|
desc_option_sidebar="apply sidebar patch"
|
|
|
|
|
|
|
|
# Disable hcache for cross builds
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" --enable-hcache"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
if [ "$build_option_trash" ]; then
|
|
|
|
patch -sNp1 -i ${FILESDIR}/trashfolder-1.5.22.diff0
|
|
|
|
msg_normal "$pkgver: applied trashfolder patch.\n"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_sidebar" ]; then
|
|
|
|
patch -sNp1 -i ${FILESDIR}/patch-1.5.23.sidebar.20140412.txt
|
|
|
|
msg_normal "$pkgver: applied sidebar patch.\n"
|
|
|
|
fi
|
|
|
|
|
|
|
|
autoreconf -fi
|
|
|
|
# apply cross.patch after autoreconf
|
|
|
|
patch -sNp0 -i ${FILESDIR}/cross.patch
|
|
|
|
}
|
|
|
|
|
2013-11-18 23:11:43 +00:00
|
|
|
pre_build() {
|
|
|
|
find -name Makefile -exec sed \
|
|
|
|
-e 's,-I/usr/include,,g' \
|
|
|
|
-e 's,${prefix}/include,,g' -i {} \;
|
|
|
|
}
|
|
|
|
|
2013-11-19 09:16:25 +00:00
|
|
|
post_install() {
|
|
|
|
rm ${DESTDIR}/etc/Muttrc.dist
|
|
|
|
rm ${DESTDIR}/etc/mime.types{,.dist}
|
|
|
|
rm ${DESTDIR}/usr/bin/{flea,muttbug}
|
|
|
|
rm ${DESTDIR}/usr/share/man/man1/{flea,muttbug}.1
|
|
|
|
vinstall contrib/gpg.rc 644 etc Muttrc.gpg.dist
|
|
|
|
}
|