updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / dmc-hg / PKGBUILD
blobe43b830c698632a73ee01ddfa9523dcc1431ae4e
1 # Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com>
2 pkgname=dmc-hg
3 pkgver=81
4 pkgrel=2
5 pkgdesc="dynamic mail client"
6 arch=('i686' 'x86_64')
7 url="http://hg.suckless.org/dmc/"
8 license=('MIT')
9 depends=('msmtp' 'openssl')
10 makedepends=('mercurial')
11 provides=('dmc')
12 conflicts=('dmc')
14 _hgroot="http://hg.suckless.org/"
15 _hgrepo="dmc"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to Mercurial server...."
21   if [ -d $_hgrepo ] ; then
22     cd $_hgrepo
23     hg pull -u || return 1
24     msg "The local files are updated."
25   else
26     hg clone $_hgroot $_hgrepo || return 1
27   fi
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
39 package() {
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
47
48 # vim:set ts=2 sw=2 et: