updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / rstudio / PKGBUILD
blob917babfccd7c4478d636837300f6898b6e90adcb
1 # Contributor: _AND_ <and@ebrilo.jp>
2 license=('unknown')
3 arch=('i686')
4 pkgname=rstudio
5 pkgver=1.0.150
6 pkgrel=1
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')
13 build() {
14 cd "${pkgdir}"
15 rpmextract.sh "../rsl_en_1_i386.rpm"
16 mv usr/local opt
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
20 rm -rf usr/share/menu
21 rm -f usr/bin/rstudio
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