updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / mailme-git / PKGBUILD
blob8ff5be7a863773b0641600ec4cc57ed04726e360
1 # Maintainer: Jeremy Newton (Mystro256)
3 pkgname=mailme-git
4 pkgver=20110922
5 pkgrel=1
6 pkgdesc="Mailme is Yet Another 'You've got mail!' notifier, effectively adding email notification to telepathy/empathy. Works with telepathy accounts to produce mail notification."
7 arch=('i686' 'x86_64')
8 url="https://github.com/jku/mailme"
9 license=('LGPL2.1')
10 depends=('telepathy-mission-control')
11 makedepends=('git' 'intltool')
12 optdepends=('telepathy-gabble: XMPP/Jabber support'
13             'telepathy-butterfly: MSN support'
14             'telepathy-idle: IRC support'
15             'telepathy-salut: Link-local XMPP support'
16             'telepathy-sofiasip: SIP support'
17             'telepathy-haze: libpurple support')
18 source=('mailme.desktop')
19 md5sums=('c2af928c5a0878039077bc09a1d691ae')
21 _gitroot='git://github.com/jku/mailme.git'
22 _gitname='mailme'
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot $_gitname
33   fi
35   msg "GIT checkout done or server timeout"
36   msg "Starting make..."
38   rm -rf "$srcdir/$_gitname-build"
39   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
40   cd "$srcdir/$_gitname-build"
42   # Build...
44   ./autogen.sh --prefix=${pkgdir}/usr
45   make
46   make install
48 package() {
49   install -D -Dm664 $srcdir/mailme.desktop "$pkgdir/etc/xdg/autostart/mailme.desktop"
50