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

Felix Yan felixonmars at gemini.archlinux.org
Fri Aug 12 13:51:10 UTC 2022


    Date: Friday, August 12, 2022 @ 13:51:10
  Author: felixonmars
Revision: 452614

archrelease: copy trunk to staging-x86_64

Added:
  msmtp/repos/staging-x86_64/
  msmtp/repos/staging-x86_64/PKGBUILD
    (from rev 452613, msmtp/trunk/PKGBUILD)
  msmtp/repos/staging-x86_64/keys/

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: msmtp/repos/staging-x86_64/PKGBUILD (from rev 452613, msmtp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2022-08-12 13:51:10 UTC (rev 452614)
@@ -0,0 +1,52 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=msmtp
+pkgname=('msmtp' 'msmtp-mta')
+pkgver=1.8.22
+pkgrel=2
+pkgdesc="A mini smtp client"
+arch=('x86_64')
+url="https://marlam.de/msmtp/"
+license=('GPL3')
+makedepends=('texlive-plainextra' 'libsecret' 'gsasl')
+source=("https://marlam.de/msmtp/releases/msmtp-$pkgver.tar.xz"{,.sig})
+sha512sums=('13307bd8004bb7e229193b74f4e736c8462624a4aa1aedbb57421098efb2aa6b8cf1358ebc874a2db48aa6266414b4c6a1673d631356e92c1c538391533e098a'
+            'SKIP')
+validpgpkeys=('2F61B4828BBA779AECB3F32703A2A4AB1E32FD34')  # Martin Lambers
+
+build() {
+  cd $pkgbase-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc --with-libgsasl
+  make
+  make -C doc html pdf
+}
+
+package_msmtp() {
+  pkgdesc="A mini smtp client"
+  depends=('libsecret' 'gsasl')
+
+  cd $pkgbase-$pkgver
+  make DESTDIR="$pkgdir" install 
+  make DESTDIR="$pkgdir" -C doc install-html install-pdf
+
+# Installing example configs and scripts to /usr/share/doc/msmtp
+# as they are not installed by default (Debian and Gentoo do it this way)
+  install -d "$pkgdir"/usr/share/doc/msmtp
+  cp -r scripts/{find_alias,msmtpqueue,msmtpq,set_sendmail} "$pkgdir"/usr/share/doc/msmtp/
+  install -D -m644 doc/*.example "$pkgdir"/usr/share/doc/msmtp/
+
+  install -D -m644 scripts/vim/msmtp.vim "$pkgdir"/usr/share/vim/vimfiles/syntax/msmtp.vim
+
+  chmod 755 "$pkgdir"/usr/share/doc/msmtp/{find_alias,msmtpqueue,set_sendmail}/*.sh
+  chmod 755 "$pkgdir"/usr/share/doc/msmtp/msmtpq/msmtp*
+}
+
+package_msmtp-mta() {
+  pkgdesc="A mini smtp client - the regular MTA"
+  depends=('msmtp')
+  provides=('smtp-forwarder')
+  conflicts=('smtp-forwarder')
+
+  install -d "$pkgdir"/usr/bin
+  ln -s msmtp "$pkgdir"/usr/bin/sendmail
+}



More information about the arch-commits mailing list