reebypastalina

gcalcli-alpha.PKGBUILD

Feb 8th, 2018
125
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=gcalcli-alpha
  2. pkgver=4.0.0a2
  3. pkgrel=1
  4. pkgdesc='Google Calendar Command Line Interface'
  5. arch=('any')
  6. url=https://github.com/insanum/gcalcli
  7. license=('MIT')
  8. depends=('python2-google-api-python-client' 'python2-dateutil' 'python2-gflags'
  9. 'python2-oauth2client')
  10. optdepends=('python2-vobject: for ics/vcal importing'
  11.             'python2-parsedatetime: for fuzzy dates/times like "now", "today",
  12.              "eod tomorrow", etc.')
  13. source=('git+https://github.com/insanum/gcalcli#branch=argparse_over_gflags')
  14. md5sums=('SKIP')
  15. conflicts=('gcalcli' 'gcalcli-git')
  16. _gitname=gcalcli
  17.  
  18. pkgver() {
  19.   cd $_gitname
  20.   #git log -1 --format="%cd.g%h" --date=short | sed 's/-//g'
  21.   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')"
  22. }
  23.  
  24. package() {
  25.   cd $_gitname
  26.   python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
  27. }
  28.  
  29. # vim:set ts=2 sw=2 et:
RAW Paste Data