[arch-commits] Commit in msmtp/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Florian Pritz bluewind at archlinux.org
Sun Dec 9 16:55:18 UTC 2018


    Date: Sunday, December 9, 2018 @ 16:55:17
  Author: bluewind
Revision: 341391

archrelease: copy trunk to testing-x86_64

Added:
  msmtp/repos/testing-x86_64/
  msmtp/repos/testing-x86_64/PKGBUILD
    (from rev 341390, msmtp/trunk/PKGBUILD)

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

Copied: msmtp/repos/testing-x86_64/PKGBUILD (from rev 341390, msmtp/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-12-09 16:55:17 UTC (rev 341391)
@@ -0,0 +1,52 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=msmtp
+pkgname=('msmtp' 'msmtp-mta')
+pkgver=1.8.1
+pkgrel=1
+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})
+sha256sums=('f0a2a7ed23a3ba5ca88640a9bc433507a79fdfc916b14a989d36679b7fdca4da'
+            '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