updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / gsh-git / PKGBUILD
blobf2b11b04ce51d8f627e131f0b2f3c46898882988
1 # Contributor: Alexander Tsamutali <astsmtl@yandex.ru>
3 pkgname=gsh-git
4 pkgver=20101124
5 pkgrel=1
6 pkgdesc="A tool to aggregate several remote shells into one."
7 arch=('i686' 'x86_64')
8 url="http://guichaz.free.fr/gsh/"
9 license=('GPL')
10 depends=('python2')
11 makedepends=('git')
12 provides=('gsh')
13 conflicts=('gsh')
15 _gitroot="git://repo.or.cz/gsh.git"
16 _gitname="gsh"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server..."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout."
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   python2 setup.py install --root="$pkgdir"