updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / periscope-svn / PKGBUILD
blob9a06dbc22d73948986d7c3d372ce108d7e472c4d
1 # Maintainer: Juan Diego Tascon
2 # Contributor: Denis Zawada <deno@rootnode.net>
3 # Contributor: Jordy van Wolferen <jordz@archlinux.us>
5 pkgname=periscope-svn
6 pkgver=149
7 pkgrel=1
8 pkgdesc="Subtitles searching module written in python."
9 url="http://code.google.com/p/periscope/"
10 arch=('any')
11 license=('GPL3')
12 depends=('python-beautifulsoup' 'python-notify')
13 makedepends=('subversion' 'python2-distribute')
14 provides=('periscope')
16 _svntrunk=http://periscope.googlecode.com/svn/trunk/
17 _svnmod=periscope-read-only
19 build() {
20   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
26   
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
29   
30   cp -r $_svnmod $_svnmod-build
31   cd $_svnmod-build/
32   
33   python2 ./setup.py build
34   python2 ./setup.py install --root="$pkgdir"
35   
36   rm -rf "$srcdir/$_svnmod-build"