--- PKGBUILD.orig 2012-11-08 11:50:03.511586937 -0500
+++ PKGBUILD 2012-11-08 12:05:03.158445735 -0500
@@ -1,43 +1,57 @@
# Maintainer: TDY <tdy@gmx.com>
pkgname=spyder-hg
-pkgver=1059
+pkgver=2368
pkgrel=1
pkgdesc="Scientific PYthon Development EnviRonment providing MATLAB-like features (formerly pydee)"
arch=('i686' 'x86_64')
url="http://spyderlib.googlecode.com/"
license=('MIT')
-depends=('python-qscintilla')
-makedepends=('mercurial' 'setuptools')
+depends=('python2-pyqt' 'python2-pyflakes' 'desktop-file-utils' 'python2-pyzmq')
+makedepends=('mercurial' 'setuptools' 'python2-sphinx')
optdepends=('pylint: code analysis'
- 'python-matplotlib: 2D plotting'
- 'python-numpy: N-dimensional arrays'
- 'python-scipy: signal/image processing')
+ 'ipython2: enhanced Python interpreter'
+ 'python2-rope: editor code completion, calltips and go-to-definition'
+ "python2-sphinx: object inspector's rich text mode"
+ 'python2-numpy: N-dimensional arrays'
+ 'python2-scipy: signal/image processing'
+ 'python2-matplotlib: 2D/3D plotting')
provides=('spyder')
conflicts=('spyder')
-_hgroot=https://spyderlib.googlecode.com/hg/
+_hgroot=https://spyderlib.googlecode.com/hg
_hgrepo=spyderlib
build() {
cd "$srcdir"
+ msg "Connecting to Mercurial server...."
- if [[ -d $_hgrepo/.hg ]]; then
- cd $_hgrepo && hg pull -u && cd ..
+ if [[ -d "$_hgrepo" ]]; then
+ cd "$_hgrepo"
+ hg pull -u
+ msg "The local files are updated."
else
- hg clone $_hgroot/$_hgrepo
+ hg clone "$_hgroot" "$_hgrepo"
fi
- rm -rf $_hgrepo-build
- hg clone $_hgrepo $_hgrepo-build
- cd $_hgrepo-build
+ msg "Mercurial checkout done or server timeout"
+ msg "Starting build..."
+
+ rm -rf "$srcdir/$_hgrepo-build"
+ cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
+ cd "$srcdir/$_hgrepo-build"
python2 setup.py build
}
package() {
cd "$srcdir/$_hgrepo-build"
- python2 setup.py install --prefix=/usr --root="$pkgdir"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
install -Dm644 $_hgrepo/__init__.py \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ #Icon
+ sed -i -e '$a\Icon=spyder' "$srcdir/$_hgrepo-build"/scripts/spyder.desktop
+ install -D -m644 "$srcdir/$_hgrepo-build"/scripts/spyder.desktop \
+ "${pkgdir}"/usr/share/applications/spyder.desktop
+ install -D -m644 "$srcdir/$_hgrepo-build"/spyderlib/images/spyder.svg "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/spyder.svg
}