1 # Contributor: raubkopierer <mail[dot]sensenmann[at]googlemail[dot]com>
2 pkgname=python2-bert-git
5 pkgdesc="BERT serialization library for Python"
6 url="http://github.com/samuel/python-bert"
9 depends=('python2' 'python2-erlastic-git')
10 makedepends=('git' 'python2')
12 _gitroot="git://github.com/samuel/python-bert.git"
13 _gitname="python-bert"
17 msg "Connecting to github.com GIT server...."
19 if [ -d ${srcdir}/$_gitname ] ; then
20 cd $_gitname && git pull origin
21 msg "The local files are updated."
26 msg "GIT checkout done or server timeout"
27 msg "Starting make..."
29 cd ${srcdir}/${_gitname}
30 python2 setup.py install --prefix ${pkgdir}/usr
31 mkdir ${pkgdir}/usr/share
32 mkdir ${pkgdir}/usr/share/licenses
33 mkdir ${pkgdir}/usr/share/licenses/${pkgname}
34 cp ${srcdir}/${_gitname}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}