updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / abook-muttgroups / PKGBUILD
blobdcd8d2a353919c7ce63940fd917c56d68f9739cb
1 # Maintainer: Peter Lewis <plewis@aur.archlinux.org>
2 # Contributor: damir <damir@archlinux.org>
3 # Contributor: Thayer Williams <thayer@archlinux.org>
4 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
5 # Contributor: Gaetan Bisson <bisson@archlinux.org>
6 # Contributor: Fabio Zanini <fabio.zanini@fastmail.fm>
8 pkgname=abook-muttgroups
9 pkgver=20120103
10 pkgrel=1
11 pkgdesc='abook clone with mutt group, merge and delete duplicates patches'
12 arch=('i686' 'x86_64')
13 url='https://gitorious.org/abook/abook'
14 license=('GPL2')
15 depends=('readline')
16 provides=('abook')
17 conflicts=('abook' 'abook-vcard')
18 _gitroot='git://gitorious.org/abook/abook.git'
19 _gitname='abook'
20 source=()
22 build() {
23         cd ${srcdir}
24         msg "Connecting to the GIT server...."
26         if [ -d ${srcdir}/${_gitname} ] ; then
27                 cd ${_gitname} && git checkout groups && git pull origin
28                 msg "The local files are updated."
29         else
30         git clone -b groups ${_gitroot}
31         fi
33         cd ${srcdir}/${_gitname}
34         msg "GIT checkout done or server timeout"
36         msg "Starting make..."
37         ./configure --prefix=/usr --mandir=/usr/share/man
38         make
41 package() {
42         cd ${srcdir}/${_gitname}
43         make DESTDIR="${pkgdir}" install