[arch-commits] Commit in mailutils/repos (3 files)

Felix Yan felixonmars at archlinux.org
Sun Mar 15 22:45:10 UTC 2020


    Date: Sunday, March 15, 2020 @ 22:45:09
  Author: felixonmars
Revision: 598772

archrelease: copy trunk to extra-x86_64

Added:
  mailutils/repos/extra-x86_64/
  mailutils/repos/extra-x86_64/PKGBUILD
    (from rev 598771, mailutils/trunk/PKGBUILD)
  mailutils/repos/extra-x86_64/fix-build-mb-len-max.patch
    (from rev 598771, mailutils/trunk/fix-build-mb-len-max.patch)

----------------------------+
 PKGBUILD                   |   49 +++++++++++++++++++++++++++++++++++++++++++
 fix-build-mb-len-max.patch |   14 ++++++++++++
 2 files changed, 63 insertions(+)

Copied: mailutils/repos/extra-x86_64/PKGBUILD (from rev 598771, mailutils/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2020-03-15 22:45:09 UTC (rev 598772)
@@ -0,0 +1,49 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+
+pkgname=mailutils
+pkgver=3.9
+pkgrel=1
+pkgdesc="MUA command line tool (mailx)"
+arch=(x86_64)
+url="https://www.gnu.org/software/mailutils/"
+license=('GPL')
+depends=('libldap' 'pam' 'gnutls' 'gsasl')
+makedepends=('emacs')
+options=(!emptydirs)
+validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732')
+source=(https://ftp.gnu.org/gnu/mailutils/mailutils-$pkgver.tar.bz2{,.sig}
+        fix-build-mb-len-max.patch)
+sha512sums=('a3b366183f3583a6f2a0df5fd8f9cf2d3f746b87d501f33f47b30f742078e400cb4247ab5012dfe98ae4b5428a82f5ea315d37502f4179b03d66124994de8180'
+            'SKIP'
+            '48248bfae1cc3b80c3decfcb99f803b65fd0d068f6c09625eb5e3763b3184090d7bd97fa3bc916b3e2e8c737b2bd501aa25482a96aceb555c08307b54c2a24a8')
+
+prepare() {
+  cd "$srcdir/mailutils-$pkgver"
+  # Include limits.h in frm/frm.h so it doesn't misdefine MB_LEN_MAX to 4
+  # (patch from github.com/NixOS/nixpkgs)
+  patch -Np1 -i ../fix-build-mb-len-max.patch
+}
+
+build() {
+  cd "$srcdir/mailutils-$pkgver"
+  ./configure \
+	--prefix=/usr \
+	--sbindir=/usr/bin \
+	--libexecdir=/usr/lib/$pkgname \
+	--sysconfdir=/etc \
+	--with-gdbm \
+	--with-gnutls \
+	--disable-python \
+	--without-guile
+  make CFLAGS="$CFLAGS -O2" || make CFLAGS="$CFLAGS -O2" LDFLAGS="-L`pwd`/lib -lmutcpwrap -ltinfo"
+}
+
+package() {
+  cd "$srcdir/mailutils-$pkgver"
+  make -j1 DESTDIR="$pkgdir" install
+  rm -f "$pkgdir"/usr/share/info/dir
+  mv "$pkgdir"/usr/bin/mail "$pkgdir"/usr/bin/gnu-mail
+  mv "$pkgdir"/usr/share/man/man1/mail.1 "$pkgdir"/usr/share/man/man1/gnu-mail.1
+  chown -R root:root "$pkgdir"
+}

Copied: mailutils/repos/extra-x86_64/fix-build-mb-len-max.patch (from rev 598771, mailutils/trunk/fix-build-mb-len-max.patch)
===================================================================
--- extra-x86_64/fix-build-mb-len-max.patch	                        (rev 0)
+++ extra-x86_64/fix-build-mb-len-max.patch	2020-03-15 22:45:09 UTC (rev 598772)
@@ -0,0 +1,14 @@
+diff --git a/frm/frm.h b/frm/frm.h
+index 178b87d54..7931faada 100644
+--- a/frm/frm.h
++++ b/frm/frm.h
+@@ -34,6 +34,9 @@
+ #ifdef HAVE_ICONV_H
+ # include <iconv.h>
+ #endif
++#ifdef HAVE_LIMITS_H
++# include <limits.h>
++#endif
+ #ifndef MB_LEN_MAX
+ # define MB_LEN_MAX 4
+ #endif



More information about the arch-commits mailing list