# Contributor: Sören Tempel # Maintainer: Alex Denes pkgname=neomutt pkgver=20230517 pkgrel=0 pkgdesc="Mutt with miscellaneous fixes and feature patches" url="https://neomutt.org/" arch="all !riscv64" # blocked by notmuch options="chmod-clean !check" # mutt_file_read_line hangs on ci, probably requires some device to be present (https://github.com/neomutt/neomutt/blob/bccb959d1c917259e170dd2e51909b27e81bd28f/test/file/mutt_file_read_line.c) license="GPL-2.0-or-later" # TODO: Replace gnupg with specific gnupg subpackages that neomutt really needs. depends="gnupg" makedepends="cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev libidn2-dev ncurses-dev openssl-dev>3 notmuch-dev bsd-compat-headers libxslt tcl docbook-xsl pcre2-dev perl w3m zlib-dev" checkdepends="bash" subpackages="$pkgname-doc $pkgname-lang" _test_commit=1569b826a56c39fd09f7c6dd5fc1163ff5a356a2 source="neomutt-$pkgver.tar.gz::https://github.com/neomutt/neomutt/archive/$pkgver.tar.gz neomutt-test-files-$_test_commit.tar.gz::https://github.com/neomutt/neomutt-test-files/archive/$_test_commit.tar.gz " # secfixes: # 20211015-r0: # - CVE-2021-32055 build() { ./configure \ --notmuch \ --gpgme \ --gdbm \ --disable-idn \ --idn2 \ --pcre2 \ --ssl \ --sasl \ --testing \ --zlib make } check() { export NEOMUTT_TEST_DIR="$srcdir/neomutt-test-files-$_test_commit" (cd $NEOMUTT_TEST_DIR && ./setup.sh) make test (cd $NEOMUTT_TEST_DIR && ./restore.sh) } package() { make DESTDIR="$pkgdir" install } sha512sums=" 6314c63f1a324c9d45bc06fe1ab73b86a1f11467d6cf5105f72f55029fe8bc035b4a2833e6c8958e749fe109b5f8e68b53ff7821185b7a4480468ddce5c267f3 neomutt-20230517.tar.gz 8c98a34c50e87a0b671b49b256dbd83034104fdfa93cde423adc102aebd9c3741942364addadc7c7c2a8a71cbca1850d6c03ff12c2238efac2d106da65f8c296 neomutt-test-files-1569b826a56c39fd09f7c6dd5fc1163ff5a356a2.tar.gz "