updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / python2-bert-git / PKGBUILD
blobfe3d87e39ef00e46f619566b60f4f15c0c8541f4
1 # Contributor: raubkopierer <mail[dot]sensenmann[at]googlemail[dot]com>
2 pkgname=python2-bert-git
3 pkgver=20110121
4 pkgrel=1
5 pkgdesc="BERT serialization library for Python"
6 url="http://github.com/samuel/python-bert"
7 arch=('i686' 'x86_64')
8 license=('BSD')
9 depends=('python2' 'python2-erlastic-git')
10 makedepends=('git' 'python2')
12 _gitroot="git://github.com/samuel/python-bert.git"
13 _gitname="python-bert"
15 build() {
16   cd ${srcdir}
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."
22   else
23   git clone $_gitroot
24   fi
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}
35