1 # Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com>
5 pkgdesc="dynamic mail client"
7 url="http://hg.suckless.org/dmc/"
9 depends=('msmtp' 'openssl')
10 makedepends=('mercurial')
14 _hgroot="http://hg.suckless.org/"
19 msg "Connecting to Mercurial server...."
21 if [ -d $_hgrepo ] ; then
23 hg pull -u || return 1
24 msg "The local files are updated."
26 hg clone $_hgroot $_hgrepo || return 1
29 msg "Mercurial checkout done or server timeout"
30 msg "Starting make..."
32 rm -rf "$srcdir/$_hgrepo-build"
33 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
34 cd "$srcdir/$_hgrepo-build"
36 make all HAVE_SSL=1 PREFIX=/usr || return 1
37 #make LDFLAGS="--no-as-needed" all || return 1
40 cd "$srcdir/$_hgrepo-build"
41 make install DESTDIR="$pkgdir" || return 1
42 install -Dm644 README ${pkgdir}/usr/share/doc/${pkgname}/README
43 install -Dm644 HISTORY ${pkgdir}/usr/share/doc/${pkgname}/HISTORY
44 install -Dm644 TODO ${pkgdir}/usr/share/doc/${pkgname}/TODO
45 install -Dm644 FAQ ${pkgdir}/usr/share/doc/${pkgname}/FAQ
46 install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
48 # vim:set ts=2 sw=2 et: