updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / python2-supplement-git / PKGBUILD
blobe4103a197f20586c58ae3f8c6e7b7e054fd3385c
1 # Maintainer: Fabien Devaux <fdev31 at gmail dot com >
2 pkgname=python2-supplement-git
3 pkgver=20120119
4 pkgrel=1
5 pkgdesc="Python code completion library"
6 arch=('i686' 'x86_64')
7 url="http://github.com/baverman/supplement"
8 license=('MIT')
9 depends=('python2')
10 makedepends=('python2-distribute')
12 _gitroot="git://github.com/baverman/supplement.git"
13 _gitname="supplement"
15 build() {
16   cd $srcdir
18   msg "Connecting to GIT server..."
19   if [[ -d ${_gitname} ]]; then
20     (cd ${_gitname} && git pull origin)
21   else
22     git clone --depth=1 ${_gitroot} ${_gitname}
23   fi
25   msg "GIT checkout done or server timeout"
26   msg "Starting make..."
28   rm -rf ${_gitname}-build
29   cp -r ${_gitname} ${_gitname}-build
31   cd ${srcdir}/${_gitname}-build
33   python2 setup.py build
36 package() {
37   cd ${srcdir}/${_gitname}-build
38   python2 setup.py install --root=$startdir/pkg
40   install -D -m664 LICENSE  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
42   rm -rf ${_gitname}-build
45 # vim:set ts=2 sw=2 et: