Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Feb 17th, 2011  |  syntax: Bash  |  size: 0.95 KB  |  views: 188  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }