updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / python2-legit-git / PKGBUILD
blobf4d06bf3762e3790aee3d09b8b4efec8435031ae
1 # Maintainer: Jan-Erik Rediger <badboy at archlinux dot us>
3 pkgname=python2-legit-git
4 pkgver=20110629
5 pkgrel=1
6 pkgdesc="Sexy Git CLI, Inspired by GitHub for Macâ„¢."
7 arch=('any')
8 url="https://github.com/kennethreitz/legit"
9 license=('BSD')
10 depends=('python2' 'gitpython')
11 makedepends=('git')
13 _gitroot="https://github.com/kennethreitz/legit.git"
14 _gitname="legit"
16 build() {
17   cd "$srcdir"
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot
24     cd $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   python2 setup.py install --root=$pkgdir
36   install -Dm644 LICENSE \
37         ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
40 # vim:set ts=2 sw=2 sts=2 et: