updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gcalcli / PKGBUILD
blobd98f6b5bb34e9a8999365c297a4bbd26eb55e93f
1 # Maintainer: Dan Serban
2 # Contributors: insanum, Army, Thomas Zervogiannis
4 pkgname=gcalcli
5 pkgver=2.x.latest
6 pkgrel=1
7 pkgdesc="Allows you to access your Google Calendar from a command line"
8 arch=(any)
9 url=http://code.google.com/p/gcalcli/
10 license=(MIT)
11 depends=(python2-dateutil python-gdata)
12 makedepends=(lynx)
14 build()
16   rm gcalcli.tgz 2>/dev/null || true
17   _url=$(lynx -dump "http://code.google.com/p/gcalcli/downloads/list" | grep -o http.*tgz$ | head -1)
18   wget -O gcalcli.tgz "${_url}"
19   bsdtar -xf gcalcli.tgz
20   sed -i 's|https=False,|https=True,|g' gcalcli
21   install -Dm755 gcalcli "${pkgdir}"/usr/bin/gcalcli