updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / red-r / PKGBUILD
blob7a230c04a67f2ef73f48f975b0377c5c76d0f5be
1 # Contributor: Andrzej Giniewicz <gginiu@gmail.com>
2 pkgname=red-r
3 pkgver=1.7.5
4 pkgrel=2
5 pkgdesc="A visual programming interface for R"
6 depends=('python-rpy' 'python-matplotlib' 'python-imaging' 'pyqwt' 'docutils')
7 makedepends=('setuptools')
8 arch=('any')
9 license=('GPL')
10 source=("http://r-orange.googlecode.com/files/RedR.zip")
11 url="http://www.red-r.org/"
12 md5sums=('3079240e6cd665815995b8a1d03f35cd')
14 build() {
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()'`"
17   install -d "$_target"
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"