updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / abookells / PKGBUILD
blob7209894b31923f353bdaaa8ba700a20635450c5f
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=abookells
9 pkgver=20110619
10 pkgrel=1
11 pkgdesc='abook clone with vcard and group patches'
12 arch=('i686' 'x86_64')
13 url='https://gitorious.org/abookells'
14 license=('GPL2')
15 depends=('readline')
16 provides=('abook')
17 conflicts=('abook' 'abook-vcard')
18 _gitroot='git://gitorious.org/abookells/abookells.git'
19 _gitname='abookells'
20 source=()
22 build() {
23         cd ${srcdir}
24         msg "Connecting to the GIT server...."
26         if [ -d ${srcdir}/${_gitname} ] ; then
27                 cd ${_gitname} && git pull origin
28                 msg "The local files are updated."
29         else
30                 git clone ${_gitroot}
31         fi
33         msg "GIT checkout done or server timeout"
34         msg "Starting make..."
36         cd ${srcdir}/${_gitname}
38         ./configure --prefix=/usr --mandir=/usr/share/man
39         make
42 package() {
43         cd ${srcdir}/${_gitname}
44         make DESTDIR="${pkgdir}" install