Advertisement
Guest User

Untitled

a guest
Feb 17th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | None | 0 0
  1. # Contributor: Iwan Gabovitch <qubodup@gmail.com>
  2. pkgname=scikits-audiolab-git
  3. pkgver=20110217
  4. pkgrel=3
  5. pkgdesc="python package for reading/writing audio files from numpy arrays"
  6. arch=('i686' 'x86_64')
  7. url="http://scipy.org/scipy/scikits/wiki/AudioLab"
  8. license=('LGPL')
  9. depends=('python2' 'libsndfile' 'python2-numpy' 'scikits-base')
  10. makedepends=('setuptools' 'subversion')
  11. provides=('scikits-audiolab')
  12. conflicts=('scikits-audiolab')
  13.  
  14. _gitroot=git://github.com/cournape/audiolab.git
  15. _gitname='audiolab'
  16.  
  17. build() {
  18.   cd "$srcdir"
  19.  
  20.   if [ -d $srcdir/$_gitname ] ; then
  21.     cd $_gitname && git pull origin
  22.     msg "The local files are updated."
  23.   else
  24.     git clone $_gitroot
  25.     cd $_gitname
  26.   fi
  27.  
  28.   mkdir -p "$pkgdir"/usr/lib/python2.7/site-packages
  29.  
  30.   python2 setup.py install --root="$pkgdir" || return 1
  31.  
  32.   rm "$pkgdir/`python2 -c 'from distutils.sysconfig import get_python_lib; \
  33.    print get_python_lib()'`/scikits/__init__.py"
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement