blob: ad09e01b1e0567fdbc5a8944e5fc3f3e81a2b8ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#Contributor: Hector Mtz-Seara <hseara.#at#.gmail*.*com>
pkgname=pyzo
pkgver=4.3.1
pkgrel=1
pkgdesc="Pyzo is a cross-platform Python IDE focused on interactivity and introspection, which makes it very suitable for scientific computing."
url="http://pyzo.org"
license=("BSD")
arch=('any')
depends=('python-pyzolib')
replaces=('iep')
conflicts=('iep')
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=("https://github.com/pyzo/pyzo/archive/v${pkgver}.tar.gz")
sha1sums=('8163a7b9f41204b43011a4abcf592df036590230')
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 <<EOF
[Desktop Entry]
Version=${pkgver}
Type=Application
Encoding=UTF-8
Name=pyzo
Comment=Pyzo is a cross-platform Python IDE
Exec=/usr/bin/pyzo
Icon=/usr/lib/python3.5/site-packages/pyzo/resources/appicons/pyzologo.ico
Categories=Python;Development;IDE;
EOF
mkdir -p ${pkgdir}/usr/share/applications
install -m644 ${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
# Building shortcut
msg2 "Building pyzo shortcut"
mkdir -p ${pkgdir}/usr/bin
cat > ${pkgdir}/usr/bin/${pkgname} <<EOF
#!/usr/bin/env python
import pyzo
pyzo.start()
EOF
chmod 755 ${pkgdir}/usr/bin/${pkgname}
#Install license
# Install (New) BSD license
install -D -m444 ${srcdir}/${pkgname}-${pkgver}/${pkgname}/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
}
|