Info2: <<
Package: googlecl-py%type_pkg[python]
Version: 0.9.14
Revision: 1
Type: python (2.7)
Description: Use Google services from the command line
DescDetail: <<
    GoogleCL brings Google services to the command line.
    
    We currently support the following Google services:
    
    Blogger
    $ google blogger post --title "foo" "command line posting"
    
    Calendar
    $ google calendar add "Lunch with Jim at noon tomorrow"
    
    Contacts
    $ google contacts list name,email > contacts.csv
    
    Docs
    $ google docs edit --title "Shopping list"
    
    Picasa
    $ google picasa create --title "Cat Photos" ~/photos/cats/*.jpg
    
    Youtube
    $ google youtube post --category Education killer_robots.avi
<<
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>
License: BSD
Homepage: http://code.google.com/p/googlecl/

Source: http://googlecl.googlecode.com/files/googlecl-%v.tar.gz
Source-Checksum: SHA256(0a4640b1240104b8020f9af526e24afe53a8327390d95ef28e1ca093673fce5a)

Depends: python%type_pkg[python], gdata-py%type_pkg[python]
BuildDepends: fink (>= 0.24.12)

CompileScript: <<
 %p/bin/python%type_raw[python] setup.py build
<<

InstallScript: <<
 %p/bin/python%type_raw[python] setup.py install --root=%d
 mv %i/bin/google %i/bin/google-py%type_pkg[python]
 mkdir -p %i/share/man/man1
 cp man/google.1 %i/share/man/man1/google.1-py%type_pkg[python]
<<

PostInstScript: <<
	update-alternatives --install %p/bin/google google %p/bin/google-py%type_pkg[python] %type_pkg[python] --slave %p/share/man/man1/google.1 google.1 %p/share/man/man1/google.1-py%type_pkg[python]
<<

PreRmScript: <<
	if [ $1 != "upgrade" ]; then
		update-alternatives --remove google %p/bin/google-py%type_pkg[python]
	fi
<<

DocFiles: changelog README.config README.txt
<<