updated on Wed Jan 11 04:01:16 UTC 2012
[aur-mirror.git] / pycp / PKGBUILD
blobe7da89bfe0f72c876cd95e52d408ed365e4e186a
1 #Contributor: Yannick LM yannicklm1337 at gmail dot com
3 pkgname=pycp
4 pkgver=20090512
5 pkgrel=1
6 pkgdesc='cp with a progressbar'
7 arch=('any')
8 url='http://gitorious.org/projects/pycp'
9 license=('GPL')
10 depends=('python' 'python-progressbar')
11 makedepends=('python' 'git')
13 _gitroot="git://gitorious.org/pycp/mainline.git"
14 _gitname="pycp"
16 build() {
17   cd ${srcdir}
18   msg "Connecting to gitorious.org GIT server...."
20   if [ -d ${srcdir}/$_gitname ] ; then
21   cd $_gitname && git pull origin
22   msg "The local files are updated."
23   else
24   git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
29   msg "Starting setup.py ..."
30   cd ${srcdir}/$_gitname
31   python setup.py install --root=$startdir/pkg || return 1
32   msg "Done"