updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / beta_pyechonest / PKGBUILD
blob321cff8be8da29edff462109f62520f58af5c318
1 # Contributor: Adrian Carpenter <adriatic.c@gmail.com>
2 pkgname=beta_pyechonest
3 pkgver=118
4 pkgrel=1
5 pkgdesc="beta version 4 of pyechonest for interacting with echonest"
6 arch=('i686' 'x86_64')
7 url="http://pyechonest.googlecode.com/svn/branches/beta_pyechonest"
8 license=('BSD')
9 depends=('python>=2.5' 'python<3.0' 'python-simplejson')
10 conflicts=('pyechonest')
11 makedepends=('subversion')
12 source=()
13 md5sums=() 
15 _svntrunk=http://pyechonest.googlecode.com/svn/branches/beta_pyechonest
16 _svnmod=beta_pyechonest
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   #
35   # BUILD
36   #
38   python setup.py install --root=$pkgdir/
40 # vim:set ts=2 sw=2 et: