1 # Maintainer: mrLoki <mat_kit@rambler.ru>
5 pkgdesc="An educational programming language and IDE in Russian schools"
6 url="http://www.niisi.ru/kumir/index.htm"
11 makedepends=('python2')
15 #install='kumir.install'
16 source=("http://www.niisi.ru/${pkgname}/${pkgver}/${pkgname}-${pkgver}.${pkgrel}.tar.gz")
17 md5sums=('9f466157698628d5e2b1f67dac194253')
20 cd "${srcdir}/${pkgname}-${pkgver}"
21 python2 ./configure.py --prefix=${pkgdir}/usr --target-dir=${pkgdir}/opt/kumir
26 cd "${srcdir}/${pkgname}-${pkgver}"
27 sed -i -e 's/python\ /python2\ /g' ./Kumir/Makefile
28 sed -i -e 's/python\ /python2\ /g' ./PluginStarter/Makefile
29 sed -i -e 's/python\ /python2\ /g' ./Addons/Kuznechik/Makefile
30 sed -i -e 's/python\ /python2\ /g' ./Addons/TurtleNew/Makefile
31 sed -i -e 's/python\ /python2\ /g' ./Addons/vodoley/Makefile
32 sed -i -e 's/\#\!\/usr\/bin\/python/\#\!\/usr\/bin\/python2/' ./Scripts/*.py
33 install -d "$pkgdir"/opt/kumir
34 make DESTDIR="${pkgdir}" install
35 install -Dm644 LICENSE.GPL "$pkgdir/usr/share/licenses/$pkgname/LICENSE.GPL"
36 sed -i -e 's/\/home\/loki\/dnls\/кумир\/pkg\/opt/\/opt/g' $pkgdir/usr/bin/kum*
39 # vim:set ts=2 sw=2 et: