void-packages/srcpkgs/neomutt/template

80 lines
2.9 KiB
Bash
Raw Normal View History

2016-04-05 15:55:14 +00:00
# Template file for 'neomutt'
pkgname=neomutt
2016-11-07 03:38:37 +00:00
version=20161104
2016-10-16 02:27:17 +00:00
revision=1
2016-04-05 15:55:14 +00:00
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
configure_args="--enable-pop --enable-imap --enable-smtp --enable-hcache
--enable-gpgme --with-regex --with-idn --with-ssl --with-sasl --enable-notmuch
--enable-sidebar --enable-exact-address --enable-nfs-fix --sysconfdir=/etc/$pkgname"
hostmakedepends="automake"
makedepends="ncurses-devel gpgme-devel libidn-devel libressl-devel libsasl-devel
gdbm-devel aspell-devel libnotmuch-devel"
depends="mime-types"
2016-08-10 00:57:28 +00:00
conf_files="/etc/$pkgname/Muttrc"
2016-04-05 15:55:14 +00:00
short_desc="Mutt with misc fixes and feature patches"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="GPL-2"
homepage="http://www.neomutt.org"
distfiles="https://github.com/neomutt/neomutt/archive/neomutt-${version}.tar.gz"
2016-11-07 03:38:37 +00:00
checksum=198379db86b7d54238523f2664f3975fe7d71db2ac18ce55085c3ed40eec7356
2016-04-05 15:55:14 +00:00
case "${XBPS_TARGET_MACHINE}" in
2016-08-28 12:53:21 +00:00
x86_64-musl) CFLAGS="-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1";;
# Inquiry: Do we have largefile support on everywhere?
esac
2016-04-05 15:55:14 +00:00
provides="mutt-0_1"
# Begin alternatives:
alternatives="
mutt:mutt:/usr/bin/mutt-$pkgname
mutt:pgpewrap:/usr/bin/pgpewrap-$pkgname
mutt:flea:/usr/bin/flea-$pkgname
mutt:muttbug:/usr/bin/muttbug-$pkgname
mutt:smime_keys:/usr/bin/smime_keys-$pkgname
mutt:pgpewrap.1:/usr/share/man/man1/pgpewrap-${pkgname}.1
mutt:flea.1:/usr/share/man/man1/flea-${pkgname}.1
mutt:mutt.1:/usr/share/man/man1/mutt-${pkgname}.1
mutt:pgpring.1:/usr/share/man/man1/pgpring-${pkgname}.1
mutt:muttbug.1:/usr/share/man/man1/muttbug-${pkgname}.1
mutt:smime_keys.1:/usr/share/man/man1/smime_keys-${pkgname}.1
mutt:mbox.5:/usr/share/man/man5/mbox-${pkgname}.5
mutt:muttrc.5:/usr/share/man/man5/muttrc-${pkgname}.5
mutt:mmdf.5:/usr/share/man/man5/mmdf-${pkgname}.5
"
# End alternatives
pre_configure() {
autoreconf -fi
}
post_install() {
# provided by mime-types
rm "${DESTDIR}"/etc/${pkgname}/mime.*
ln -s /etc/mime.types "${DESTDIR}/etc/${pkgname}/mime.types"
# move dist to examples dir
vsconf contrib/gpg.rc Muttrc.gpg.dist
mv "${DESTDIR}/etc/$pkgname/Muttrc.dist" "${DESTDIR}/usr/share/examples/${pkgname}"
# Allows alternatives to work
for manpage in "${DESTDIR}"/usr/share/man/man[15]/*; do
mv "$manpage" "${manpage%.*}-${pkgname}.${manpage##*.}"
done
for binary in "${DESTDIR}"/usr/bin/*; do
mv "$binary" "${binary}-${pkgname}"
done
}
# REMARKS:
# Conf file is in a --sysconfdir=/etc/$pkgname/Muttrc and then alternatives to
# /etc/Muttrc. In addition, a dependency on mime-types is broken by having
# /etc/dir/ because mutt probably expects the mime information in the same
# dir as sysconfdir. Thus a symlink is created to deal with this.
# /etc/Muttrc is not currently in alternatives to prevent inadvertently
# overwriting configuration.
2016-08-09 20:28:53 +00:00
# In version 20160808 keybase integration was added, and lots of new
# documentation now gets installed. Rumors of an /etc/NeoMuttrc are in the
# release notes but not currently installed for unknown reasons.