#Contributor: Hector Mtz-Seara pkgname=iep pkgver=3.7 pkgrel=2 pkgdesc="Pronounced as 'eep'is a cross-platform Python IDE focused on interactivity and introspection, which makes it very suitable for scientific computing. Its practical design is aimed at simplicity and efficiency." url="http://iep-project.org" license=("BSD") arch=('any') depends=('python-pyzolib') optdepends=( 'python-pyqt4: At least one qt4 python bindings should be installed' 'python-pyside: At lease one qt4 python bindings should be installed' ) makedepends=('python-setuptools') source=("http://bitbucket.org/iep-project/iep/downloads/iep-${pkgver}.source.zip" "SYN_flood.patch") sha1sums=('4c5251813934f876b8aca6f213e5ff36686174c4' '037799e6b50934e1fca169af90fddc2f47799cc9') prepare(){ cp SYN_flood.patch ${srcdir}/${pkgname}-${pkgver}/iep/yoton cd "${srcdir}/${pkgname}-${pkgver}"/iep/yoton patch connection_tcp.py < SYN_flood.patch } build(){ cd "${srcdir}/${pkgname}-${pkgver}" python setup.py build } package(){ cd "${srcdir}/${pkgname}-${pkgver}" python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build # Remove left over directories from distribute utils. find ${pkgdir} -type d -name "__pycache__" -exec rm -r {} \; -prune # Install application launcher cat > ${pkgname}.desktop < ${pkgdir}/usr/bin/${pkgname} <