updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / rapid-spring-git / PKGBUILD
blob6d96211d84b74a9bf4504aac71fd195d879e53ab
2 # Pimper : M0Rf30
4 pkgname=rapid-spring-git
5 pkgver=20120104
6 pkgrel=1
7 pkgdesc="Commandline client for Spring rapid downloading system"
8 arch=('i686' 'x86_64')
9 url="http://github.com/tvo/rapid/"
10 license=('GPL')
11 depends=('python2-bitarray' 'python2' 'spring' 'python-pip' 'cx_freeze')
12 source=('patch')
13 md5sums=('278ddeedb23a852ae2fa9957fddde982')
15 _gitroot="git://github.com/tvo/rapid.git"
16 _gitname="rapid"
18 build() {
19         msg "Connecting to GIT server...."
21         
22         [ -d $_gitname ] && {
23                 cd $_gitname
24                 git pull origin
25                 cd ..
27                 msg "Local files have been updated."
28         } || {
29                 git clone $_gitroot
30         }
32         msg "GIT checkout done or server timeout"
34         rm -rf $_gitname-build
35         git clone $_gitname $_gitname-build
36         cd $_gitname-build
37  patch -Np0 -i ../patch
38  python2 setup.py install --root=$pkgdir
39