updated on Mon Jan 23 00:00:36 UTC 2012
[aur-mirror.git] / contacts-git / PKGBUILD
blob10011373d3c6a492b4ecb75207785528d1e4ab20
1 # Maintainer: Robert Chmielowiec <robert@chmielowiec.net>
2 pkgname=contacts-git
3 _pkgname=contacts
4 pkgver=20100411
5 pkgrel=1
6 pkgdesc="A small, lightweight addressbook that uses libebook, part of EDS (Git version)"
7 url="http://pimlico-project.org/contacts.html"
8 license="GPL"
9 depends=('evolution-data-server')
10 makedepends=('git' 'intltool')
11 arch=('i686' 'x86_64')
12 install="contacts.install"
13 provides=('contacts')
14 replaces=('contacts')
16 _gitroot=git://git.gnome.org/contacts
17 _gitname=contacts
18         
19 build() {
20   cd $srcdir
21   if [ -d ${_gitname} ]; then
22     cd ${_gitname} && git pull origin
23     msg "The local files are updated."
24   else
25     git clone ${_gitroot}
26     cd $_pkgname
27   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
30   ./autogen.sh --prefix=/usr --sysconfdir=/etc --enable-gconf --enable-gnome-vfs
31   make || return 1
32   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=$pkgdir install || return 1
33   
34   install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
35   gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${_pkgname}.schemas" ${pkgdir}/etc/gconf/schemas/*.schemas || return 1