# $Id: PKGBUILD 113929 2014-07-01 10:06:12Z thestinger $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Mikael Eriksson <mikael_eriksson@miffe.org>

pkgname=googlecl
pkgver=0.9.14
pkgrel=3
pkgdesc='Command line tools for the Google Data APIs'
arch=('any')
url='https://code.google.com/p/googlecl/'
license=(Apache)
depends=('python2-gdata')
source=(https://googlecl.googlecode.com/files/googlecl-$pkgver.tar.gz)
md5sums=('35d8fde3034d2ff8175385e5f5d7aa08')

build() {
  cd googlecl-$pkgver
  sed -i '1c#!/usr/bin/python2' src/google
}

package() {
  cd googlecl-$pkgver
  python2 setup.py install --prefix=/usr --root="$pkgdir"
  install -Dm644 man/google.1 "$pkgdir/usr/share/man/man1/google.1"
}
