1 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
5 pkgdesc="A visual programming interface for R"
6 depends=('python-rpy' 'python-matplotlib' 'python-imaging' 'pyqwt' 'docutils')
7 makedepends=('setuptools')
10 source=("http://r-orange.googlecode.com/files/RedR.zip")
11 url="http://www.red-r.org/"
12 md5sums=('3079240e6cd665815995b8a1d03f35cd')
15 _source="$srcdir/usr/lib/python2.6/dist-packages/Red-R"
16 _target="$pkgdir`python2 -c 'from distutils.sysconfig import get_python_lib; print get_python_lib()'`"
18 install -d "$pkgdir/usr/bin"
19 cp -r "$_source" "$_target"
20 echo "#!/bin/bash" > "$pkgdir/usr/bin/RedR"
21 echo "python2 $_target/Red-R/canvas/red-RCanvas.pyw" >> "$pkgdir/usr/bin/RedR"
22 chmod a+x "$pkgdir/usr/bin/RedR"