2d346c5c1a
ncurses is a explicit dependency of neomutt and should be made clear. It used to be brough in by aspell-devel, at least, but that isn't the case anymore.
79 lines
3.2 KiB
Bash
79 lines
3.2 KiB
Bash
# Template file for 'neomutt'
|
|
pkgname=neomutt
|
|
version=20210205
|
|
revision=2
|
|
wrksrc="neomutt-${version}"
|
|
create_wrksrc=true
|
|
build_wrksrc="$wrksrc"
|
|
build_style=configure
|
|
configure_args="--ssl --gpgme --notmuch --gdbm --lua --sasl --zlib --tdb
|
|
--rocksdb --testing"
|
|
make_check_target=test
|
|
conf_files="/etc/neomuttrc"
|
|
# neomutt needs either w3m/lynx/elinks to build manual.html
|
|
hostmakedepends="docbook-xsl gettext libxslt perl tcl w3m"
|
|
makedepends="aspell-devel gdbm-devel gettext-devel gpgme-devel libidn-devel
|
|
rocksdb-devel tdb-devel ncurses-devel
|
|
libnotmuch-devel openssl-devel libsasl-devel lua54-devel zlib-devel"
|
|
depends="mime-types"
|
|
short_desc="Mutt with misc fixes and feature patches"
|
|
maintainer="Toyam Cox <Vaelatern@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://neomutt.org/"
|
|
_test_files_hash=8629adab700a75c54e8e28bf05ad092503a98f75
|
|
distfiles="https://github.com/neomutt/neomutt/archive/${version}.tar.gz
|
|
https://github.com/neomutt/neomutt-test-files/archive/${_test_files_hash}.tar.gz"
|
|
checksum="77e177780fc2d8abb475d9cac4342c7e61d53c243f6ce2f9bc86d819fc962cdb
|
|
a53d6447cf4e8f60bd9a3caf68a1cfe1bfda878b5bcb8c60b965b5214de73ff9"
|
|
python_version=3
|
|
|
|
# fix:
|
|
if [ "${XBPS_CROSS_BASE}" ]; then
|
|
configure_args="${configure_args} --host=$XBPS_CROSS_TRIPLET"
|
|
configure_args="${configure_args} --build=$XBPS_TRIPLET"
|
|
configure_args="${configure_args} --with-sysroot=$XBPS_CROSS_BASE"
|
|
fi
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
x86_64-musl) CFLAGS="-D_FILE_OFFSET_BITS=64 -DLARGEFILE_SOURCE=1";;
|
|
# Inquiry: Do we have largefile support on everywhere?
|
|
esac
|
|
|
|
post_install() {
|
|
# move dist to examples dir
|
|
vsconf contrib/samples/gpg.rc Muttrc.gpg.dist
|
|
}
|
|
|
|
pre_check() {
|
|
(
|
|
cd ${wrksrc}/neomutt-test-files-${_test_files_hash}/
|
|
./setup.sh
|
|
)
|
|
export NEOMUTT_TEST_DIR=${wrksrc}/neomutt-test-files-${_test_files_hash}
|
|
}
|
|
|
|
post_check() {
|
|
# This is a file chmodded to 311 and can't be removed normally
|
|
chmod 777 ${wrksrc}/neomutt-test-files-${_test_files_hash}/maildir/damson
|
|
}
|
|
|
|
# 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.
|
|
# 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.
|
|
# As of 20171013, neomutt has hard forked and no longer refers to itself as
|
|
# "Mutt" anywhere in the codebase. https://www.neomutt.org/2017/10/13/release
|
|
# /etc/neomuttrc now exists, and there are no conflicts with regular mutt.
|
|
# Due to this, an install.msg was added and all alternatives were removed.
|
|
# Cross compiling was fixed in 20180323
|
|
# 20200417 had some build changes, none referenced explicitly by our templates.
|
|
# It also added a need for a special directory for unit tests, refered here by
|
|
# commit hash (due to a lack of versioning)
|
|
# Currently a shebang for keybase is rewritten to python2. That should be
|
|
# fixed. In fact, it turns out to be a py3 only file. Fixed as of 20200424.
|