updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / python2-supplement-git / PKGBUILD
blobd5f0fde72c8ac52737ffa13bf516c4cefe81a2b2
1 # Maintainer: Shu <shu@shuu.ru>
2 pkgname=python2-supplement-git
3 pkgver=20111113
4 pkgrel=1
5 pkgdesc="Python completion framework"
6 arch=('i686' 'x86_64')
7 url="http://github.com/baverman/supplement"
8 license=('MIT')
9 depends=('python2' 'python2-distribute')
10 makedepends=('python2')
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: