1 # Contributor: _AND_ <and@ebrilo.jp>
7 pkgdesc="R-Studio for Linux is powerful and cost-effective data recovery software. This is DEMO version limited to files smaller than 64 KB. Enter your registration key into this version to unlock the full version of R-Studio for Linux."
8 url=http://www.r-tt.com/data_recovery_linux
9 makedepends=('rpmextract')
10 source=(http://www.r-tt.com/downloads/rsl_en_1_i386.rpm)
11 md5sums=('5f8327dc36cdf0ac329d8c0c231df4d9')
15 rpmextract.sh "../rsl_en_1_i386.rpm"
17 install -d usr/share/applications
18 sed 's/\/usr\/local/\/opt/g' opt/R-Studio/share/rtt-rstudio.desktop | sed 's/Icon=rtt-rstudio/Icon=\/opt\/R-Studio\/share\/logo_48.png/g' > usr/share/applications/rtt-rstudio.desktop
19 rm -f opt/R-Studio/share/rtt-rstudio.desktop
22 sed 's/\/usr\/local/\/opt/g' opt/R-Studio/bin/rstudio | sed 's/sudo/su/g' | sed 's/\/opt\/R-Studio\/share\/rtt-rstudio.desktop/\/usr\/share\/applications\/rtt-rstudio.desktop/g' > usr/bin/rstudio
23 rm -f opt/R-Studio/bin/rstudio
24 mv usr/bin/rstudio opt/R-Studio/bin/rstudio
25 chmod 755 opt/R-Studio/bin/rstudio
26 ln -s /opt/R-Studio/bin/rstudio usr/bin/rstudio
27 rm -f opt/R-Studio/lib/librs_linux_r.so
28 ln -s rs_linux_r.so opt/R-Studio/lib/librs_linux_r.so