1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 # Contributor: Andres P <aepd87@gmail.com>
7 pkgdesc='An SMTP client. Includes queue scripts and vim syntax highlighting'
10 url=http://msmtp.sourceforge.net
11 depends=(gnutls libidn)
13 provides=(msmtp smtp-forwarder)
14 optdepends=('libgnome-keyring: External Authentication')
18 _gitroot=git://msmtp.git.sourceforge.net/gitroot/msmtp/msmtp
22 msg 'Connecting to GIT server...'
24 if [[ -d $_gitname ]]; then
25 ( cd $_gitname; git pull origin )
26 msg 'The local files are updated.'
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf $_gitname-build
35 git clone $_gitname{,-build}
49 make DESTDIR=$pkgdir install
51 install -Dm644 scripts/vim/msmtp.vim \
52 $pkgdir/usr/share/vim/vimfiles/syntax/msmtp.vim
54 sed -i "s:LOG=~/log/msmtp.queue.log:LOG=~/.msmtp.queue/msmtp.queue.log:g" scripts/msmtpq/msmtpq
56 for _i in msmtp{q,-queue}; do
57 install -D scripts/msmtpq/$_i $pkgdir/usr/bin/$_i
60 install -Dm644 scripts/msmtpq/README.msmtpq \
61 $pkgdir/usr/share/doc/msmtp/README.msmtpq
62 for _i in msmtprc-{system,user}.example; do
63 install -Dm644 doc/$_i $pkgdir/usr/share/doc/msmtp/$_i