# Maintainer: Yann Büchau # Previous Maintainer: Stephen Martin # # Note: Apache ant and java must be on the path for make to succeed. # If either was installed as a dependency during the build, you # will need to log out and then log back in for the changes to # your path and JAVA_HOME environment variable to take effect. # pkgname=rstudio-server-git _gitname="rstudio" pkgver=v2022.02.3+492.r1692.g7faaa81408 _gwtver=2.8.2 _ginver=2.1.2 _nodever=16.14.0 pkgrel=1 pkgdesc="A new integrated development environment (IDE) for R programming language" arch=('i686' 'x86_64') url="http://www.rstudio.org/" license=('AGPL3') depends=('r>=3.0.1' 'boost-libs>=1.69' 'openssl' 'mathjax2' 'pandoc' 'clang' 'postgresql-libs' 'sqlite3' 'soci' 'yaml-cpp' 'hunspell-en_US') makedepends=('git' 'quarto-cli-bin' 'cmake>=3.4.3' 'boost>=1.69' 'jdk8-openjdk' 'apache-ant' 'unzip' 'bzip2' 'pango' 'pam' 'zlib' 'wget' 'yarn') install="${pkgname}.install" conflicts=('rstudio-server') source=('git+https://github.com/rstudio/rstudio.git' 'rstudio-server.service' "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/google-gin/gin-${_ginver}.zip" "https://storage.googleapis.com/gwt-releases/gwt-${_gwtver}.zip" "https://nodejs.org/dist/v${_nodever}/node-v${_nodever}-linux-x64.tar.gz" ) md5sums=('SKIP' 'eea28f7865720f6c8d5de12f3f631880' 'e2617189fe5c138945b8cc95f26bd476' 'c295406d68c5ef364e445068599aa6d4' 'a46e501a201be6c3c05c0f770c375372') pkgver() { cd "$srcdir/$_gitname" git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' } prepare () { if test "`archlinux-java get`" != "java-8-openjdk";then cat<