# Maintainer: Grey Christoforo pkgname=wingide _wingver=6.1.0 _wingrel=1 _wing_patch_lvl=2 #bump this when adding a patch pkgver=$_wingver.$_wingrel.$_wing_patch_lvl pkgrel=1 pkgdesc="Wing IDE Professional is the full-featured Python IDE for professional programmers." url="http://www.wingware.com" license=('custom') arch=('x86_64') _wingpatch=("fix-pep8-6.1.0p1-all.tar" "fix-pep8-6.1.0p2-all.tar" "fix-pep8-env-6.1.0p3-all.tar" "remote-replace-all-6.1.0p4-all.tar" "fix-sys-exit-reporting-6.1.0p5-all.tar" "fix-pypath-expansion-6.1.0p6-all.tar") _patch_url_prefix=http://wingware.com/pub/$pkgname/$_wingver/patches/ _wingpatch=( "${_wingpatch[@]/#/$_patch_url_prefix}" ) source=("http://wingware.com/pub/$pkgname/$_wingver/$pkgname-$_wingver-$_wingrel-x86_64-linux.tar.bz2" ${_wingpatch[*]}) depends=('hicolor-icon-theme' 'libpng' 'python2' 'xdg-utils') options=(!strip !emptydirs) md5sums=('b4e5b7f9ec4be77e5e9e7e249b737b69' 'f96618da2fe8a5d12e90e0027a6e23f8' '45c443b9b1ef24be01139bb9e5610cfa' '0dca244c6e605d9b4e9cb9fa0eed5b96' '55b2b6f8ba70e5ee4146c0ec6cdefbe9' '5b26502347ddbd5d29f356389f848af3' '3a32eb00924f43f30c22a270e756c56a') install=${pkgname}.install prepare() { cd "$srcdir/$pkgname-$_wingver-$_wingrel-x86_64-linux" sed -i 's/python/python2/' wing-install.py } package() { cd "$srcdir/$pkgname-$_wingver-$_wingrel-x86_64-linux" ./wing-install.py \ --install-binary \ --winghome "${pkgdir}/opt/${pkgname}" \ --bin-dir ${pkgdir}/usr/bin > /dev/null 2>&1 # Correct the WINGHOME environment variable sed -i "s|${pkgdir}||" ${pkgdir}/opt/${pkgname}/wingdbstub.py sed -i "s|${pkgdir}||" ${pkgdir}/opt/${pkgname}/wing # Correct ARCH environment variable sed -i 's|ARCH=`arch`|ARCH=`uname -m`|' ${pkgdir}/opt/wingide/run-wing.sh # Fix a bug in the script sed -i "s|'x86_64'\]|'x86_64' \]|" ${pkgdir}/opt/wingide/run-wing.sh # Copy over patch (if any) if [ -d ../patches ]; then cp -r ../patches ${pkgdir}/opt/${pkgname}/. fi # Correct the file permissions chown -R root:root "${pkgdir}/opt/${pkgname}" chmod +x ${pkgdir}/opt/${pkgname}/resources/linux/desktop/install-linux-desktop.sh # Install the LICENSE install -D -m 644 "${pkgdir}/opt/${pkgname}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }