desktop/rstudio/PKGBUILD

53 lines
1.3 KiB
Bash
Raw Normal View History

2011-06-17 03:44:39 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
2011-06-17 03:44:39 +08:00
pkgname=rstudio
2012-01-26 06:24:53 +08:00
_pkgname=rstudio-rstudio
pkgver=0.97.312
_pkgver=165a43f
pkgrel=1
2011-06-17 03:44:39 +08:00
pkgdesc="A new integrated development environment (IDE) for R - The Desktop Client"
arch=('x86_64')
2011-06-17 03:44:39 +08:00
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')
2011-06-17 03:44:39 +08:00
provides=('rstudio-desktop')
2012-03-06 19:37:36 +08:00
categories=('programming')
source=("https://github.com/$pkgname/$pkgname/tarball/v$pkgver")
md5sums=('2714b2f1bdd6de50f4d0cb1764d55332')
2011-06-17 03:44:39 +08:00
build() {
2012-01-26 06:24:53 +08:00
cd $srcdir/$_pkgname-$_pkgver
2011-06-17 03:44:39 +08:00
source /etc/profile.d/apache-ant.sh
2012-01-26 06:24:53 +08:00
#Checking for ANT and Java can be found.
2011-06-17 03:44:39 +08:00
which ant > /dev/null
which java > /dev/null
# Install gwt
2012-01-26 06:24:53 +08:00
cd $srcdir/$_pkgname-$_pkgver/dependencies/common
sh install-gwt
sh install-dictionaries
sh install-mathjax
2011-06-17 03:44:39 +08:00
2012-01-26 06:24:53 +08:00
# Configure and build.
cd $srcdir/$_pkgname-$_pkgver
mkdir build
cd build
2011-06-17 03:44:39 +08:00
unset LDFLAGS
2012-01-26 06:24:53 +08:00
cmake \
-DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr/local/lib/$pkgname \
..
2011-06-17 03:44:39 +08:00
}
package() {
2012-01-26 06:24:53 +08:00
cd $srcdir/$_pkgname-$_pkgver/build
make DESTDIR=$pkgdir install
2011-06-17 03:44:39 +08:00
}