Skip to content

Instantly share code, notes, and snippets.

Created July 6, 2011 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1067002 to your computer and use it in GitHub Desktop.
Save anonymous/1067002 to your computer and use it in GitHub Desktop.
PKGBUILD for periscope-svn
# Maintainer (after 20/03/2010): Juan Diego Tascon
# Contributor: Denis Zawada <deno@rootnode.net>
# Contributor: Jordy van Wolferen <jordz@archlinux.us>
pkgname=periscope-svn
pkgver=149
pkgrel=1
pkgdesc="Subtitles searching module written in python."
url="http://code.google.com/p/periscope/"
arch=('any')
license=('GPL3')
depends=('python-beautifulsoup' 'python-notify')
makedepends=('subversion' 'python2-distribute')
provides=('periscope')
_svntrunk=http://periscope.googlecode.com/svn/trunk/
_svnmod=periscope-read-only
build() {
cd "$srcdir"
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r $_svnmod $_svnmod-build
cd $_svnmod-build/
python2 ./setup.py build
python2 ./setup.py install --root="$pkgdir"
rm -rf "$srcdir/$_svnmod-build"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment