desktop/rstudio/PKGBUILD

53 lines
1.3 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
pkgname=rstudio
_pkgname=rstudio-rstudio
pkgver=0.97.312
_pkgver=165a43f
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' 'qtwebkit' 'r')
makedepends=('apache-ant' 'boost' 'bzip2' 'cmake' 'git' 'icu' 'openssl' 'pam' 'unzip' 'wget')
provides=('rstudio-desktop')
categories=('programming')
source=("https://github.com/$pkgname/$pkgname/tarball/v$pkgver")
md5sums=('2714b2f1bdd6de50f4d0cb1764d55332')
build() {
cd $srcdir/$_pkgname-$_pkgver
source /etc/profile.d/apache-ant.sh
#Checking for ANT and Java can be found.
which ant > /dev/null
which java > /dev/null
# Install gwt
cd $srcdir/$_pkgname-$_pkgver/dependencies/common
sh install-gwt
sh install-dictionaries
sh install-mathjax
# Configure and build.
cd $srcdir/$_pkgname-$_pkgver
mkdir build
cd build
unset LDFLAGS
cmake \
-DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr/local/lib/$pkgname \
..
}
package() {
cd $srcdir/$_pkgname-$_pkgver/build
make DESTDIR=$pkgdir install
}