updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / google-docs-fs-svn / PKGBUILD
blob60b51a7da9a49b585382ad1e17c043f5330b5d4e
1 # Contributor: Tocer Deng <tocer.deng@gmail.com>
2 #Contributor: Tom Tryfonidis <tomtryf at gmail dot com>
3 pkgname=google-docs-fs-svn
4 _realname=google-docs
5 pkgver=128
6 pkgrel=1
7 pkgdesc="allow you to connect to Google Docs and treat it as a file system"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/google-docs-fs/"
10 license=('GPL2')
11 depends=('python>=2.5' 'python-fuse>=0.2' 'python-gdata>=1.3')
12 makedepends=('subversion')
13 conflicts=('google-docs-fs')
14 _svntrunk=http://google-docs-fs.googlecode.com/svn/trunk/
15 _svnmod=google-docs-fs
16 md5sums=()
18 build() {
19   cd "$srcdir"
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_svnmod-build"
31   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32   cd "$srcdir/$_svnmod-build"
34   python2 setup.py install --root=$pkgdir --optimize=1 || return 1
38 # vim:set ts=2 sw=2 et: