[arch-commits] Commit in msmtp/trunk (PKGBUILD)
Eric BĂ©langer
eric at archlinux.org
Sat Jun 18 02:59:48 UTC 2011
Date: Friday, June 17, 2011 @ 22:59:47
Author: eric
Revision: 127745
upgpkg: msmtp 1.4.24-2
Added vim syntax file (close FS#24525), Added docs and sample scripts and config files (close FS#24128)
Modified:
msmtp/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2011-06-18 00:38:43 UTC (rev 127744)
+++ PKGBUILD 2011-06-18 02:59:47 UTC (rev 127745)
@@ -4,14 +4,15 @@
pkgname=msmtp
pkgver=1.4.24
-pkgrel=1
+pkgrel=2
pkgdesc="A mini smtp client"
arch=('i686' 'x86_64')
license=('GPL3')
url="http://msmtp.sourceforge.net"
depends=('gnutls' 'libidn')
+makedepends=('texlive-core')
provides=('smtp-forwarder')
-install=${pkgname}.install
+install=msmtp.install
source=(http://download.sourceforge.net/sourceforge/msmtp/${pkgname}-${pkgver}.tar.bz2)
md5sums=('3ed704fbd3e7419cab5c65bb7928d9ba')
@@ -19,12 +20,19 @@
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr --sysconfdir=/etc --with-ssl=gnutls
make
+ make -C doc html pdf
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" -C doc install-html install-pdf
- # this can not be the default
- #install -Dm644 doc/msmtprc-system.example "${pkgdir}"/etc/msmtprc
+# 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,msmtp-gnome-tool,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"
}
More information about the arch-commits
mailing list