updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / supplement-git / PKGBUILD
blob3a37b18ebf9b5d1c15896e839cef4780c52e206e
1 # Maintainer: Shu <shu@shuu.ru>
2 pkgname=supplement-git
3 pkgver=20111112
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: