1 # Contributor: Matthew Bauer <mjbauer95@gmail.com>
3 pkgname=gdatacopier-svn
6 pkgdesc="A command-line tool for downloading Google Docs documents in various formats, OpenOffice and PDF among them"
8 url="http://code.google.com/p/gdatacopier/"
10 depends=('python-gdata')
11 provides=('gdatacopier')
12 conflicts=('gdatacopier')
14 _svntrunk="http://gdatacopier.googlecode.com/svn/trunk/"
18 msg "Starting SVN checkout..."
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
28 msg "SVN checkout done or server timeout"
32 dest="$pkgdir/opt/Google/gdatacopier"
35 install -Dm 755 gcp.py $dest/gcp.py
36 install -Dm 755 gls.py $dest/gls.py
37 install -Dm 755 grm.py $dest/grm.py
38 install -Dm 755 gmkdir.py $dest/gmkdir.py
39 install -Dm 755 gmv.py $dest/gmv.py
41 mkdir -p $pkgdir/usr/bin
42 ln -s /opt/Google/gdatacopier/gcp.py $pkgdir/usr/bin/gcp
43 ln -s /opt/Google/gdatacopier/gls.py $pkgdir/usr/bin/gls
44 ln -s /opt/Google/gdatacopier/grm.py $pkgdir/usr/bin/grm
45 ln -s /opt/Google/gdatacopier/gmv.py $pkgdir/usr/bin/gmv
46 ln -s /opt/Google/gdatacopier/gmkdir.py $pkgdir/usr/bin/gmkdir