Date: Friday, February 17, 2023 @ 20:56:38
  Author: dvzrv
Revision: 469229

archrelease: copy trunk to testing-x86_64

Added:
  mutt/repos/testing-x86_64/
  mutt/repos/testing-x86_64/PKGBUILD
    (from rev 469228, mutt/trunk/PKGBUILD)
  mutt/repos/testing-x86_64/keys/
  mutt/repos/testing-x86_64/mutt.install
    (from rev 469228, mutt/trunk/mutt.install)

--------------+
 PKGBUILD     |   77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 mutt.install |   11 ++++++++
 2 files changed, 88 insertions(+)

Copied: mutt/repos/testing-x86_64/PKGBUILD (from rev 469228, 
mutt/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2023-02-17 20:56:38 UTC (rev 469229)
@@ -0,0 +1,77 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Gaetan Bisson <[email protected]>
+# Contributor: tobias [tobias [at] archlinux.org]
+
+pkgname=mutt
+pkgver=2.2.9
+pkgrel=3
+pkgdesc="Small but very powerful text-based mail client"
+arch=(x86_64)
+url="http://www.mutt.org/";
+license=(GPL2)
+depends=(glibc libgpg-error mime-types sqlite zlib)
+makedepends=(docbook-xml docbook-xsl elinks gdbm gpgme krb5 libidn2 libsasl
+libxslt lynx ncurses openssl)
+optdepends=(
+  'perl: for smime_keys'
+  'python: for experimental mutt_oath2.py'
+  'smtp-forwarder: to send mail'
+)
+backup=(etc/$pkgname/Muttrc)
+install=$pkgname.install
+source=(https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$pkgver.tar.gz{,.asc})
+sha512sums=('d4d308ba573ba6e43b6dd2c131d0dc345163bd375f19a9038c9eeaf271f9da88043951f6c74658ff1a9d7a8fdcce28809aba50ab3f5aa0d34b77cf4989bc054f'
+            'SKIP')
+b2sums=('86b0743102bb1b023b3ccb03740c24c6ec728765b3770afdb3faed2982789aaa38a7c306e5ee30ca05ced1baa7771657ab37e5ad53eaf59ec73e51990f699c74'
+        'SKIP')
+validpgpkeys=('8975A9B33AA37910385C5308ADEF768480316BDA') # Kevin J. McCarthy 
<[email protected]>
+
+prepare() {
+  cd $pkgname-$pkgver
+  autoreconf -fiv
+}
+
+build() {
+  local configure_options=(
+    --prefix=/usr
+    --sysconfdir=/etc/$pkgname
+    --enable-autocrypt
+    --enable-compressed
+    --enable-debug
+    --enable-gpgme
+    --enable-hcache
+    --enable-imap
+    --enable-pop
+    --enable-sidebar
+    --enable-smtp
+    --with-curses=/usr
+    --with-gss=/usr
+    --with-idn2
+    --with-sasl
+    --with-sqlite3
+    --with-ssl=/usr
+  )
+
+  cd $pkgname-$pkgver
+  ./configure "${configure_options[@]}"
+  make
+}
+
+package() {
+  depends+=(
+    gdbm libgdbm.so
+    gpgme libgpgme.so
+    krb5 libgssapi_krb5.so
+    libidn2 libidn2.so
+    libsasl libsasl2.so
+    ncurses libncursesw.so
+    openssl libssl.so
+  )
+
+  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
+  # we backup /etc/mutt/Muttrc and don't need another copy
+  rm -v "$pkgdir/etc/$pkgname/Muttrc.dist"
+  # a more comprehensive list of mime types is provided by mailcap in 
/etc/mime.types
+  rm -v "$pkgdir/etc/$pkgname/mime.types"{,.dist}
+  ln -sv ../mime.types "$pkgdir/etc/$pkgname/mime.types"
+}

Copied: mutt/repos/testing-x86_64/mutt.install (from rev 469228, 
mutt/trunk/mutt.install)
===================================================================
--- testing-x86_64/mutt.install                         (rev 0)
+++ testing-x86_64/mutt.install 2023-02-17 20:56:38 UTC (rev 469229)
@@ -0,0 +1,11 @@
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  if (( $(vercmp "$2" '2.2.9-3') <= 0)); then
+    cat <<MSG
+>>> The system-wide configuration location has moved to /etc/mutt/Muttrc.
+    Samples can be found below /usr/share/doc/mutt/samples/.
+MSG
+  fi
+}
+

Reply via email to