[arch-commits] Commit in msmtp/repos (community-x86_64 community-x86_64/PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Jan 19 19:06:33 UTC 2019
Date: Saturday, January 19, 2019 @ 19:06:32
Author: felixonmars
Revision: 344517
archrelease: copy trunk to community-x86_64
Added:
msmtp/repos/community-x86_64/
msmtp/repos/community-x86_64/PKGBUILD
(from rev 344516, msmtp/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: msmtp/repos/community-x86_64/PKGBUILD (from rev 344516, msmtp/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2019-01-19 19:06:32 UTC (rev 344517)
@@ -0,0 +1,52 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgbase=msmtp
+pkgname=('msmtp' 'msmtp-mta')
+pkgver=1.8.2
+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=('d1185c1969ed00d0e2c57dbcd5eb09a9f82156042b21309d558f761978a58793'
+ '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