updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / spe / PKGBUILD
blobf6a558bccd5d4acb6e7863008778fa518ee62bfb
1 #Contributor : Ashok Gautham <ScriptDevil@gmail.com>
3 # I would like to thank Qwak for this PKGBUILD's base
5 pkgname=spe
6 pkgver=0.8.4.h
7 pkgrel=1
8 pkgdesc="Stani's Python Editor (SPE) is a cross-platform IDE for Python."
10 arch=('i686' 'x86_64')
12 url="http://pythonide.stani.be/"
13 license=('GPL')
14 depends=('wxpython>=2.8' 'pychecker')
16 optdepends=('wxglade>=0.6.1' 'winpdb>=1.3.2')
18 source=("http://download.berlios.de/python/$pkgname-$pkgver-wx2.6.1.0.tar.gz" 
21 build() {
22 cd $srcdir/$pkgname-$pkgver || return 1
24 #doesn't work fine now:
25 #python setup.py install --root=$pkgdir || return 1
27 #so must do it like in oficial .spec (http://prdownload.berlios.de/python/spe.spec)
28 rm -rf ./_spe/plugins/winpdb
29 rm -rf ./_spe/plugins/wxGlade
30 rm -rf ./_spe/plugins/XRCed
32 find . \( -name "*.wxg" -or -name "*.bat" \) -exec rm -f {} \;
34 find . -type f -print0 | xargs -0 -n 250 chmod a-x
35 find . -type f | xargs egrep -l '\#!/usr/bin/env|\#!BPY' | xargs chmod a+x
36 find . -name "Child.py" -print0 | xargs -0 -n 250 chmod a-x
37 find . \( -name "*.py" -or -name "*.html" -or -name "*.htm" -or -name "*.txt" -or -name "COPYING" -or -name "NEWS" \) -exec sed -i 's/\r//' {} \;
39 #to get current path: python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
40 mkdir -p $pkgdir/usr/lib/python2.5/site-packages/spe/
41 cp -Rp ./* $pkgdir/usr/lib/python2.5/site-packages/spe/
43 mkdir -p $pkgdir/usr/bin/
44 ln -s /usr/lib/python2.5/site-packages/spe/_spe/SPE.py $pkgdir/usr/bin/spe
46 install -D -m644 $pkgname.desktop \
47 $pkgdir/usr/share/applications/$pkgname.desktop || return 1
48 install -D -m644 _spe/skins/default/blenpy.png \
49 $pkgdir/usr/share/icons/spe.png || return 1
51 md5sums=('55230b8b643b273912a1d6c3163cca27')