blob: b9a6ddd52d775598de76ebd8615206844bcea836 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: Artem Klevtsov <a.a.klevtso@gmail.com>
pkgname=rstudio-desktop-git
_gitname=rstudio
pkgver=0.99.632
pkgrel=1
pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language"
arch=('i686' 'x86_64')
url="https://www.rstudio.com/products/rstudio/"
license=('AGPL3')
depends=('boost-libs>=1.5' 'r>=2.11.1' 'hicolor-icon-theme' 'shared-mime-info' 'qt5-webkit')
makedepends=('git' 'cmake>=2.8' 'boost>=1.5' 'java-runtime' 'apache-ant' 'unzip' 'openssl' 'pango' 'libcups' 'qt5-svg' 'pam' 'wget')
optdepends=('git: for git support'
'subversion: for subversion suuport'
'openssh-askpass: for a git ssh access')
provides=('rstudio-desktop' 'rstudio-desktop-bin')
conflicts=('rstudio-desktop' 'rstudio-desktop-bin')
install="${pkgname}.install"
source=('git+https://github.com/rstudio/rstudio.git')
md5sums=('SKIP')
pkgver() {
cd ${srcdir}/${_gitname}
# Get the version number
git describe --tags --abbrev=0 | sed 's|v||g'
}
prepare() {
cd "${srcdir}/${_gitname}/dependencies/common"
msg "Downloading and installing gwt"
./install-gwt
msg "Downloading and installing dictionaries"
./install-dictionaries
msg "Downloading and installing mathjax"
./install-mathjax
msg "Downloading and installing pandoc"
./install-pandoc
msg "Downloading and installing libclang"
./install-libclang
msg "Downloading and installing packages"
./install-packages
# temporary fix for the Qt 5.5
cd "${srcdir}/${_gitname}/src/cpp/desktop/3rdparty/qtsingleapplication"
sed -i 's|#include <QTime>|#include <QDataStream>\n#include <QTime>|' qtlocalpeer.cpp
}
build() {
# Unset user Rprofile.r variable for building
if [ -n $R_PROFILE_USER ]; then
unset R_PROFILE_USER
fi
# Configure with cmake in a new buld directory as recommended in the rstudio INSTALL file
rm -rf "${srcdir}/${_gitname}/build"
mkdir "${srcdir}/${_gitname}/build"
cd "${srcdir}/${_gitname}/build"
# Configure cmake
cmake -DRSTUDIO_TARGET=Desktop \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio \
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 ..
}
package() {
cd "${srcdir}/${_gitname}/build"
# Install the program
make DESTDIR="${pkgdir}" install
# Install the license
install -Dm644 ../COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
|