updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / iep / PKGBUILD
blob40c1fba82fdadb1ae001c26ef08f3e69e5b3bdd0
1 #Contributor: Ricardo Honorato Z.
2 #Contributor: Hector Mtz-Seara
3 pkgname=iep
4 pkgver=2.3
5 pkgrel=4
6 pkgdesc="IEP (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."
7 url="http://code.google.com/p/iep/"
8 license="BSD"
9 arch=('any')
10 depends=('python' 'python-qscintilla')
13 source=(http://iep.googlecode.com/files/$pkgname-$pkgver.source.zip)
14 md5sums=('739a5783e2e4e65e77f3c48a96e4cf18')
16 build() {
17   true
20 package(){
21   cd $srcdir/$pkgname
22   sed -i 's/python3.1/python/g' iep.pyw
23   sed -i 's/python3.1/python/g' iep.py
24   sed -i 's/python3.1/python/g' shellStack.py
25   sed -i 's/python3.1/python/g' freezeScript.py
26   mkdir -p ${pkgdir}/usr/lib/python3.2/site-packages/
27   cp -r $srcdir/$pkgname ${pkgdir}/usr/lib/python3.2/site-packages/
28   chmod -R 755  ${pkgdir}/usr/lib/python3.2/site-packages/$pkgname
29   cat > ${pkgname}.desktop <<EOF
30 [Desktop Entry]
31 Version=1.0
32 Type=Application
33 Encoding=UTF-8
34 Name=iep
35 Comment=IEP is a cross-platform Python IDE
36 Exec=/usr/lib/python3.2/site-packages/iep/iep.pyw
37 Icon=/usr/lib/python3.2/site-packages/iep/icons/iep.ico
38 Categories=Python;Development;IDE;
39 EOF
40   mkdir -p ${pkgdir}/usr/share/applications
41   install -m644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
42   cat > ${pkgname} <<EOF
43 #!/bin/sh
44 /usr/lib/python3.2/site-packages/iep/iep.pyw
45 EOF
46 mkdir -p ${pkgdir}/usr/bin
47 install -m755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
48 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
49 install -m444 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt