You are not logged in.

#1 2010-02-22 04:31:17

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Help with Goobook [SOLVED]

Edit -- once again solved myself two minutes after posting smile You have to have the [DEFAULT] in ~/.goobookrc. Anyways, enjoy the PKGBUILD. Or here in the AUR.

I've got a working PKGBUILD put together for Goobook (the abook like interface to Google contacts for use with Mutt, et. al), but the program is not reading the configuration file[s]. I'm not sure if I'm doing something wrong with the PKGBUILD or if it's an error in the program.

PKGBUILD:

pkgname=goobook-svn
pkgver=41
pkgrel=1
pkgdesc="Makes it possible to use your Google Contacts in an MUA such as Mutt. It's use mimics that of abook (somewhat)."
arch=('any')
url="http://goobook.googlecode.com/"
license=('GPL')
conflicts=('goobook')
provides=('goobook')
depends=('python' 'python-gdata>=2.0.7' 'setuptools')
makedepends=('svn')
install=goobook.install

_svntrunk=http://goobook.googlecode.com/svn/trunk/
_svnmod=goobook

build() {
  cd "$srcdir"
  svn co "$_svntrunk" "$_svnmod" --config-dir ./ -r "$pkgver"
  cp -r "$_svnmod" "$_svnmod"-build
  cd "$_svnmod"-build
  python setup.py install --root=${startdir}/pkg --optimize=1 || return 1
}

goobook.install:

## arg 1:  the new package version
post_install() {
cat <<End-of-message

    Configuration: For most users it will be enough to add an entry to your .netrc:
      machine google.com
      login your@google.email
      password secret
    
    To get access to more settings you can create a .goobookrc in your home directory:
      [DEFAULT]
      #If not given here, email and password is taken from .netrc using host=google.com
      email: user@gmail.com
      password: top secret
      #The following are optional, defaults are shown
      max_results: 9999
      cache_filename: ~/.goobook_cache
      cache_expiry_hours: 24

End-of-message
}
# vim:set ts=2 sw=2 et:

.goobookrc:

[DEFAULT]
email: email@gmail.com
password: secret

.netrc:

machine google.com
login email@gmail.com
password secret

Any ideas?

Thanks,
Scott

Last edited by firecat53 (2010-02-22 04:44:16)

Offline

Board footer

Powered by FluxBB