1 # Contributor: raubkopierer <mail[dot]sensenmann[at]googlemail[dot]com>
2 pkgname=python2-erlastic-git
5 pkgdesc="Erlang binary term codec and port interface. Modeled after Erlectricity."
6 url="http://github.com/samuel/python-erlastic"
10 makedepends=('git' 'python2')
12 _gitroot="git://github.com/samuel/python-erlastic.git"
13 _gitname="python-erlastic"
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}