summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7657402ee59f5c689ca822150d51d99e6f206491 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Maintainer: polyzen <polycitizen@gmail.com>
# Contributor: Army
# Contributor: Dan Serban
# Contributor: insanum
# Contributor: Thomas Zervogiannis

#modified to work with python-oauth2client from [community] repository

pkgname=gcalcli-git
pkgver=3.4.0.r311.g27aa937
pkgrel=1
pkgdesc='Google Calendar Command Line Interface, modfied to work with
the package: python-oauth2client from [community] repository.'
arch=('any')
url=https://github.com/insanum/gcalcli
license=('MIT')
depends=('python-google-api-python-client' 'python-dateutil' 'python-gflags'
'python-oauth2client')
optdepends=('python-vobject: for ics/vcal importing'
            'python-parsedatetime: for fuzzy dates/times like "now", "today",
              "eod tomorrow", etc.')
source=('git+https://github.com/insanum/gcalcli')
md5sums=('SKIP')
conflicts=('gcalcli')
_gitname=gcalcli

pkgver() {
  cd $_gitname
  #git log -1 --format="%cd.g%h" --date=short | sed 's/-//g'
  echo "$(git describe --abbrev=0 --tags | cut -f 2 -d '-' | sed 's/v//').r$(git rev-list --count HEAD).$(git log -1 --format='g%h')"
}

package() {
  cd $_gitname
  python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

# vim:set ts=2 sw=2 et: