summaryrefslogtreecommitdiff
path: root/pcr/rstudio-desktop/PKGBUILD
blob: ffbd08239769ec0b4fc87c594d3092bfa01509f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer (Arch):  TDY <tdy@archlinux.info>
# Contributor (Arch): Ben Ward <benjamin.ward@bathspa.org>

pkgname=rstudio-desktop
pkgver=0.97.332
_commit=e65a459
pkgrel=1
pkgdesc="A powerful and productive user interface for R"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.rstudio.org/"
license=('AGPL')
depends=('r>=2.11.1' 'qtwebkit' 'boost-libs>=1.50' 'shared-mime-info')
makedepends=('git' 'cmake>=2.8' 'boost>=1.50' 'java-environment' 'apache-ant' 'unzip' 'openssl' 'pam' 'wget')
install=rstudio.install
source=($pkgname-$pkgver.tgz::https://github.com/rstudio/rstudio/tarball/v$pkgver)
md5sums=('0197506486c76ed1bff71a534072e0e9')

build() {
  cd "$srcdir/rstudio-rstudio-$_commit/dependencies/common"
  sh install-gwt
  sh install-dictionaries
  sh install-mathjax

  rm -rf "$srcdir/rstudio-rstudio-$_commit/build"
  install -dm755 "$srcdir/rstudio-rstudio-$_commit/build"
  cd "$srcdir/rstudio-rstudio-$_commit/build"
  cmake -DRSTUDIO_TARGET=Desktop \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio ..
}

package() {
  cd "$srcdir/rstudio-rstudio-$_commit/build"
  make DESTDIR="$pkgdir/" install
  install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

# vim:set ts=2 sw=2 et: