1 # Maintainer: Dan Serban
6 pkgdesc="A fast, lightweight Python IDE intended for beginners, with common features and a focus on simplicity and ease of use"
8 url=http://sourceforge.net/projects/gecrit/
10 depends=(hspell python2 python2-pyenchant wxpython)
15 rm gecrit.tar.gz 2>/dev/null || true
16 _url=$(lynx -dump http://sourceforge.net/projects/gecrit/ | grep -o http.*projects.*download)
17 wget -O gecrit.tar.gz ${_url}
18 bsdtar -xf gecrit.tar.gz
19 cd $(ls -1d gecrit-*/ | tail -1)
20 sed -i 's#/usr/bin/python$#/usr/bin/python2#' *.py
21 mkdir -p "${pkgdir}"/usr/share/gecrit
22 mv * "${pkgdir}"/usr/share/gecrit/
23 mkdir -p "${pkgdir}"/usr/bin
24 USRBINFILE="${pkgdir}"/usr/bin/gecrit
25 echo '#!/bin/bash' > "${USRBINFILE}"
26 echo 'cd /usr/share/gecrit' >> "${USRBINFILE}"
27 echo 'python2 gEcrit.py' >> "${USRBINFILE}"
28 chmod +x "${USRBINFILE}"