# Maintainer: Brett Cornwall # Contributor: polyzen # Contributor: Army # Contributor: Dan Serban # Contributor: insanum # Contributor: Thomas Zervogiannis pkgname=gcalcli pkgver=4.3.0 pkgrel=2 pkgdesc='Google calendar command line interface' arch=('any') url=https://github.com/insanum/gcalcli license=('MIT') makedepends=('python-setuptools') depends=( 'python-dateutil' 'python-google-api-core' 'python-google-api-python-client' 'python-httplib2' 'python-oauth2client' 'python-parsedatetime' ) optdepends=( 'python-vobject: for ics/vcal importing' ) source=("gcalcli-$pkgver.tar.gz::https://github.com/insanum/gcalcli/archive/v$pkgver.tar.gz") sha256sums=('597d96ee1c8b5f094cca75a059cb1a0056a612e734c32012ef0d41219ac3b0cd') build() { cd "gcalcli-$pkgver" python setup.py build } check() { cd "gcalcli-$pkgver" python setup.py test } package() { cd "gcalcli-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build install -Dm644 docs/*.{md,png} -t "$pkgdir/usr/share/doc/$pkgname" install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }