1 # Maintainer: Xyne <ca archlinux xyne, backwards>
5 pkgdesc="A Python wrapper fro the Zotero API"
7 url="https://github.com/urschrei/pyzotero"
12 conflicts=('pyzotero')
14 _gitroot=git://github.com/urschrei/pyzotero.git
19 msg "Connecting to github..."
21 if [ -d "${srcdir}/$_gitname" ]; then
22 cd -- "$_gitname" && git pull origin
23 msg "The local files have been updated."
28 msg "GIT checkout done or server timeout"
30 find build -name '*.py' -exec \
31 sed -i 's@/env python@/env python2@' {} \+
33 # tmp fix, haven't reported upstream yet (no github account)
34 sed -i 's/{group}/{g}/' build/lib/pyzotero/zotero.py
38 cd -- "${srcdir}/${_gitname}"
39 python2 setup.py install --root="$pkgdir"
42 # vim:set ts=2 sw=2 et: