desktop/rstudio/PKGBUILD
2015-06-23 23:24:49 +00:00

58 lines
1.8 KiB
Bash

pkgname=rstudio
_pkgname=rstudio-rstudio
pkgver=0.99.447
_pkgver=4ff3524
pkgrel=1
pkgdesc="A new integrated development environment (IDE) for R - The Desktop Client"
arch=('x86_64')
url="http://www.rstudio.org/"
license=('AGPL')
depends=('boost-libs' 'java-environment' 'qt5-svg' 'qt5-webkit' 'r')
makedepends=('apache-ant' 'boost' 'bzip2' 'cmake' 'git' 'icu' 'openssl' 'pam' 'unzip' 'wget' 'libcups')
provides=('rstudio-desktop')
categories=('programming')
source=("https://github.com/$pkgname/$pkgname/tarball/v$pkgver"
"http://www.rstudio.com/wp-content/uploads/2014/06/RStudio-Ball.png")
sha512sums=('cfb2c10c9d28eda104d6f69eb8630c6748c55a553bc5c57e0ba2dd4d80ca9eb2e0bea3163ce3ab22f28cbd3d0e219ea9aa5d307b260865e24ed59218c5408aa1'
'c045e7efa05c57fa04d2a3cfce4222d3b34309822b0be8ebb89b11fb800cfe711f41c01c567e1075a570d0f569cfb82b62fc9080a9fa312e8b596c499e4c5663')
build() {
cd $srcdir/$_pkgname-$_pkgver/dependencies/common
sh install-boost
sh install-cef
sh install-common
sh install-dictionaries
sh install-gwt
sh install-libclang
sh install-mathjax
sh install-packages
sh install-pandoc
sh update-mathjax.sh
sh update-pandoc
# Configure and build.
cd $srcdir/$_pkgname-$_pkgver
mkdir -p build
cd build
unset LDFLAGS
cmake \
-DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr/lib/$pkgname \
..
}
package() {
cd $srcdir/$_pkgname-$_pkgver/build
make DESTDIR=$pkgdir install
install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING"
echo "#! /bin/sh
exec /usr/lib/rstudio/bin/rstudio" > $srcdir/rstudio.sh
install -D $srcdir/rstudio.sh $pkgdir/usr/bin/rstudio
sed -i s!/usr/lib/rstudio/bin/rstudio!rstudio! \
$pkgdir/usr/share/applications/rstudio.desktop
install -D ../../RStudio-Ball.png $pkgdir/usr/share/pixmaps/rstudio.png
}