Guest User

https://aur.archlinux.org/packages/spyder-hg/

a guest
Nov 8th, 2012
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.61 KB | None | 0 0
  1. --- PKGBUILD.orig       2012-11-08 11:50:03.511586937 -0500
  2. +++ PKGBUILD    2012-11-08 12:05:03.158445735 -0500
  3. @@ -1,43 +1,57 @@
  4.  # Maintainer: TDY <tdy@gmx.com>
  5.  
  6.  pkgname=spyder-hg
  7. -pkgver=1059
  8. +pkgver=2368
  9.  pkgrel=1
  10.  pkgdesc="Scientific PYthon Development EnviRonment providing MATLAB-like features (formerly pydee)"
  11.  arch=('i686' 'x86_64')
  12.  url="http://spyderlib.googlecode.com/"
  13.  license=('MIT')
  14. -depends=('python-qscintilla')
  15. -makedepends=('mercurial' 'setuptools')
  16. +depends=('python2-pyqt' 'python2-pyflakes' 'desktop-file-utils' 'python2-pyzmq')
  17. +makedepends=('mercurial' 'setuptools' 'python2-sphinx')
  18.  optdepends=('pylint:            code analysis'
  19. -            'python-matplotlib: 2D plotting'
  20. -            'python-numpy:      N-dimensional arrays'
  21. -            'python-scipy:      signal/image processing')
  22. +            'ipython2: enhanced Python interpreter'
  23. +            'python2-rope: editor code completion, calltips and go-to-definition'
  24. +            "python2-sphinx: object inspector's rich text mode"
  25. +            'python2-numpy: N-dimensional arrays'
  26. +            'python2-scipy: signal/image processing'
  27. +            'python2-matplotlib: 2D/3D plotting')
  28.  provides=('spyder')
  29.  conflicts=('spyder')
  30.  
  31. -_hgroot=https://spyderlib.googlecode.com/hg/
  32. +_hgroot=https://spyderlib.googlecode.com/hg
  33.  _hgrepo=spyderlib
  34.  
  35.  build() {
  36.    cd "$srcdir"
  37. +  msg "Connecting to Mercurial server...."
  38.  
  39. -  if [[ -d $_hgrepo/.hg ]]; then
  40. -    cd $_hgrepo && hg pull -u && cd ..
  41. +  if [[ -d "$_hgrepo" ]]; then
  42. +    cd "$_hgrepo"
  43. +    hg pull -u
  44. +    msg "The local files are updated."
  45.    else
  46. -    hg clone $_hgroot/$_hgrepo
  47. +    hg clone "$_hgroot" "$_hgrepo"
  48.    fi
  49.  
  50. -  rm -rf $_hgrepo-build
  51. -  hg clone $_hgrepo $_hgrepo-build
  52. -  cd $_hgrepo-build
  53. +  msg "Mercurial checkout done or server timeout"
  54. +  msg "Starting build..."
  55. +
  56. +  rm -rf "$srcdir/$_hgrepo-build"
  57. +  cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
  58. +  cd "$srcdir/$_hgrepo-build"
  59.  
  60.    python2 setup.py build
  61.  }
  62.  
  63.  package() {
  64.    cd "$srcdir/$_hgrepo-build"
  65. -  python2 setup.py install --prefix=/usr --root="$pkgdir"
  66. +  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  67.    install -Dm644 $_hgrepo/__init__.py \
  68.      "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  69. +  #Icon
  70. +  sed -i -e '$a\Icon=spyder' "$srcdir/$_hgrepo-build"/scripts/spyder.desktop
  71. +  install -D -m644 "$srcdir/$_hgrepo-build"/scripts/spyder.desktop \
  72. +    "${pkgdir}"/usr/share/applications/spyder.desktop
  73. +  install -D -m644 "$srcdir/$_hgrepo-build"/spyderlib/images/spyder.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/spyder.svg
  74.  }
Add Comment
Please, Sign In to add comment