rstudio-desktop

MEDIUM
maintainer xiota 74 votes scanned 2026-10-28 07:49:59.681246
View on AUR
Why flagged

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

Triggered rules

Medium source=() URL on a non-standard host source_untrusted_domain

One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).

  • PKGBUILD:99 "https://rstudio-buildtools.s3.us-east-1.amazonaws.com/gwt/gwt-${_gwt_version}.$_pkgext"

PKGBUILD

1 offending line(s) highlighted
1# Maintainer:
2# Contributor: Aleksandr Beliaev <trap000d@gmail.com>
3
4## links
5# https://posit.co/products/open-source/rstudio/
6# https://github.com/rstudio/rstudio
7
8## options
9: ${_gwt_version:=2.12.2}
10: ${_java_version:=17}
11: ${_mathjax_version:=2.7.9}
12: ${_node_version:=25}
13: ${_pandoc_version:=current}
14: ${_soci_version:=4.0.3}
15
16: ${_quarto_branch:=release/rstudio-cranberry-hibiscus}
17: ${_quarto:=false}
18
19# dependencies/common/install-copilot-language-server
20: ${_copilot_version:=1.531.0}
21
22: ${_commit:=870df5ed7859c758db7aed6f510a3edca3c74bd7}
23
24_pkgname="rstudio-desktop"
25pkgname="$_pkgname"
26pkgver=2026.09.0.174
27pkgrel=1
28pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language"
29url="https://github.com/rstudio/rstudio"
30license=('AGPL-3.0-only')
31arch=('x86_64')
32
33depends=(
34 'dbus'
35 'hicolor-icon-theme'
36 'hunspell-en_US'
37 'libboost_chrono.so' # boost-libs
38 'libboost_filesystem.so' # boost-libs
39 'libboost_iostreams.so' # boost-libs
40 'libboost_program_options.so' # boost-libs
41 'libboost_thread.so' # boost-libs
42 'libcups'
43 'libyaml-cpp.so' # yaml-cpp
44 'mathjax'
45 'nspr'
46 'nss'
47 'pandoc'
48 'r'
49)
50makedepends=(
51 "java-environment${_java_version:+=$_java_version}"
52 'ant'
53 'boost'
54 'cmake'
55 'git'
56 'libcups'
57 'ninja'
58 'nvm'
59 'openssl'
60 'pam'
61 'postgresql-libs'
62 'python'
63 'python-setuptools'
64 'wget'
65 'yarn'
66)
67optdepends=(
68 'git: for git support'
69 'nodejs: for copilot support'
70 'openssh-askpass: for a git ssh access'
71 'postgresql-libs: for postgresql'
72 'quarto: for Quarto projects support'
73 'subversion: for subversion support'
74)
75
76if [[ "${_quarto::1}" == "t" ]]; then
77 makedepends+=('quarto') # AUR
78fi
79
80options=('!emptydirs' '!debug' '!strip')
81
82_pkgsrc="rstudio-$_commit"
83_pkgsrc_mathjax="MathJax-$_mathjax_version"
84_pkgext="tar.gz"
85
86_copilot_js="copilot-language-server-js-${_copilot_version}"
87_copilot_url="https://github.com/github/copilot-language-server-release"
88
89noextract=(
90 "${_copilot_js}.zip"
91 "${_pkgsrc_mathjax}.${_pkgext}"
92 "gwt-${_gwt_version}.${_pkgext}"
93)
94
95source=(
96 "rstudio-$pkgver-${_commit::7}.$_pkgext"::"https://github.com/rstudio/rstudio/archive/$_commit.$_pkgext"
97 "quarto"::"git+https://github.com/quarto-dev/quarto.git#branch=${_quarto_branch}"
98
99 "https://rstudio-buildtools.s3.us-east-1.amazonaws.com/gwt/gwt-${_gwt_version}.$_pkgext"
100 "soci-$_soci_version.$_pkgext"::"https://github.com/SOCI/soci/archive/refs/tags/v$_soci_version.$_pkgext"
101 "$_pkgsrc_mathjax.$_pkgext"::"https://github.com/mathjax/MathJax/archive/refs/tags/$_mathjax_version.$_pkgext"
102
103 "$_copilot_url/releases/download/${_copilot_version}/copilot-language-server-linux-x64-${_copilot_version}.zip"
104 "$_copilot_url/releases/download/${_copilot_version}/${_copilot_js}.zip"
105)
106sha256sums=(
107 'SKIP'
108 'SKIP'
109 '27284accdad05ff8919a7ac6dc5f939a511a90842a35f6393517506d74809e76'
110 '4b1ff9c8545c5d802fbe06ee6cd2886630e5c03bf740e269bb625b45cf934928'
111 'c9167279c87da044f2ff910ad573a02ce90354cb59440ae568eb86e1630f65df'
112 'SKIP'
113 'SKIP'
114)
115
116_nvm_env() {
117 export HOME="$SRCDEST/node-home"
118 export NVM_DIR="$SRCDEST/node-nvm"
119
120 # set up nvm
121 source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
122 nvm install $_node_version
123 nvm use $_node_version
124
125 _npm_path="$(which npm | sed -E 's&/[^/]+$&&')"
126 _node_version=$(echo "$_npm_path" | sed -E 's&^\S+/v([0-9\.]+)/\S+$&\1&')
127}
128
129prepare() (
130 _nvm_env
131 #npm install yarn
132
133 cd "$_pkgsrc"
134 # Do not use outdated version name of pandoc
135 sed -E -e '/PANDOC_VERSION/s/"[0-9\.]+"/"'${_pandoc_version}'"/' -i cmake/globals.cmake
136
137 # Suppress _FORTIFY_SOURCE mismatch warnings
138 sed -e 's/D_FORTIFY_SOURCE=2/D_FORTIFY_SOURCE=3/' -i src/cpp/CMakeLists.txt
139
140 # Prevent Boost.URL 1.92 linker error
141 sed -E -e 's&([Cc]\+\+)17&\120&g' -i src/cpp/CMakeLists.txt
142 sed -E -e 's&(CMAKE_CXX_STANDARD) 17&\1 20&' -i cmake/compiler.cmake
143
144 # fix npm/node paths
145 sed -E -e 's&set\(RSTUDIO_NODE_PATH .*\)&set(RSTUDIO_NODE_PATH "/usr/bin")&' \
146 -e 's&(set\((RSTUDIO_INSTALLED_NODE_VERSION|RSTUDIO_NODE_VERSION)) "\S+"&\1 "'${_node_version}'"&' \
147 -i cmake/globals.cmake
148
149 mkdir -p dependencies/common/node
150 ln -sfT "$NVM_DIR/versions/node/v$_node_version" \
151 dependencies/common/node/"${_node_version}-installed"
152
153 sed -E -e 's&^external-node-path=.*$&external-node-path=/usr/bin/node&' \
154 -i src/cpp/conf/rsession-dev.conf
155
156 sed -E -e 's&"\S+/common/node/\S+"&"/usr"&' \
157 -i src/cpp/session/SessionOptions.cpp
158
159 sed -E -e '/"node\.version"/s&value="[0-9\.]+"&value="Current"&' \
160 -e '/"node\.dir"/s&value="\S+"&value="/usr"&' \
161 -e 's&"\S+/common/node/\S+/bin/yarn"&"/usr/bin/yarn"&' \
162 -i src/gwt/build.xml
163
164 sed -E -e 's&PATHS "/opt/rstudio-tools/dependencies/common/node/\$\{RSTUDIO_NODE_VERSION\}"&PATHS "'"${_npm_path}"'"&' \
165 -e 's&"\S+CMAKE_CURRENT_LIST_DIR\S+/dependencies/common/node/\S+"&"'"${_npm_path}"'"&g' \
166 -e 's&set\(RSTUDIO_NODE_VERSION "[0-9\.]+"\)&set(RSTUDIO_NODE_VERSION "Current")&' \
167 -i src/node/CMakeNodeTools.txt
168
169 # needed for system yaml-cpp
170 sed '/add_subdirectory(src)/i find_package(yaml-cpp REQUIRED)' -i CMakeLists.txt
171
172 # fix os-release path
173 sed -E 's&(STRINGS) "/etc/os-release" (OS_RELEASE)&\1 "/usr/lib/os-release" \2&' \
174 -i cmake/modules/OsRelease.cmake
175
176 # bundled deps
177 cd "$srcdir/$_pkgsrc/dependencies"
178 mkdir -p pandoc/${_pandoc_version}
179 ln -sfT /usr/bin/pandoc pandoc/${_pandoc_version}/pandoc
180
181 ln -sfT /usr/share/myspell/dicts dictionaries
182 ln -sfT /usr/share/mathjax mathjax-4
183
184 ln -sfT "$srcdir/soci-$_soci_version" "soci-$_soci_version"
185
186 # mathjax 2.7
187 mkdir -p mathjax-27
188 bsdtar -C mathjax-27 --strip-components 1 -xf "$srcdir/$_pkgsrc_mathjax.$_pkgext"
189
190 # copilot
191 install -Dm755 "$srcdir/copilot-language-server" -t "copilot-language-server"
192 mkdir -p copilot-language-server-js
193 bsdtar -xf "$srcdir/${_copilot_js}.zip" -C copilot-language-server-js
194
195 # Panmirror is picked up now from Quarto repo
196 ln -sfT "$srcdir/quarto" "$srcdir/$_pkgsrc/src/gwt/lib/quarto"
197
198 # GWT
199 mkdir -p common/gwtproject
200 bsdtar -C common/gwtproject -xf "$srcdir/gwt-$_gwt_version.$_pkgext"
201)
202
203_build_soci() (
204 echo "Building SOCI..."
205 local _opts_soci=(
206 -B "soci-$_soci_version/build"
207 -S "soci-$_soci_version"
208 -G Ninja
209 -DCMAKE_BUILD_TYPE=None
210 -DCMAKE_INSTALL_PREFIX='/usr'
211 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
212 -DBUILD_SHARED_LIBS=OFF
213 -Wno-author
214
215 -DSOCI_TESTS=OFF
216 -DSOCI_CXX11=ON
217 -DSOCI_EMPTY=OFF
218 -DWITH_BOOST=ON
219 -DWITH_POSTGRESQL=ON
220 -DWITH_SQLITE3=ON
221 -DWITH_DB2=OFF
222 -DWITH_MYSQL=OFF
223 -DWITH_ORACLE=OFF
224 -DWITH_FIREBIRD=OFF
225 -DWITH_ODBC=OFF
226 )
227
228 cmake "${_opts_soci[@]}"
229 cmake --build "soci-$_soci_version/build"
230)
231
232_setup_quarto() {
233 # Quarto set up
234 if (pacman -Q quarto > /dev/null 2> /dev/null); then
235 _quarto="ON"
236 echo "Quarto is installed, linking for build"
237 pushd "$srcdir/$_pkgsrc/dependencies" &> /dev/null
238 mkdir -p quarto/bin/tools
239 ln -sfT /usr/bin/quarto quarto/bin/quarto
240 ln -sfT /usr/bin/pandoc quarto/bin/tools/pandoc
241 popd &> /dev/null
242 else
243 _quarto="OFF"
244 echo "Quarto is not installed, using Pandoc"
245 pushd "$srcdir/$_pkgsrc/dependencies" &> /dev/null
246 mkdir -p "pandoc/${_pandoc_version}/bin/tools"
247 ln -sfT /usr/bin/pandoc "pandoc/${_pandoc_version}/bin/tools/pandoc"
248 popd &> /dev/null
249 fi
250}
251
252_setup_rpkg() {
253 echo "Downloading and installing R packages..."
254 export R_LIBS_USER="$srcdir/$_pkgsrc/dependencies/R"
255 _JOBS="$(grep -oP -- "-j\s*\K[0-9]+" <<< "${MAKEFLAGS}")" || _JOBS="1"
256 mkdir -p "${R_LIBS_USER}"
257 local RPACKAGES=(
258 digest
259 purrr
260 rmarkdown
261 testthat
262 xml2
263 yaml
264 )
265 for RPKG in "${RPACKAGES[@]}"; do
266 RINSTALLCMD="if("'!'"require($RPKG, quietly = TRUE)) { options(Ncpus = ${_JOBS} ); install.packages('$RPKG', lib='$R_LIBS_USER', repos='https://cran.rstudio.com/') }"
267 echo "> $RINSTALLCMD"
268 Rscript -e "$RINSTALLCMD"
269 done
270}
271
272build() (
273 export JAVA_HOME=/usr/lib/jvm/java-${_java_version:?}-openjdk
274 export PATH="$JAVA_HOME/bin:$PATH"
275
276 _nvm_env
277 _build_soci
278
279 _setup_quarto
280 _setup_rpkg
281
282 export RSTUDIO_TOOLS_ROOT="$srcdir/$_pkgsrc/dependencies"
283 export RSTUDIO_NODE_PATH=/usr/
284 export RSTUDIO_VERSION_MAJOR=$(cut -d'.' -f1 <<< "$pkgver")
285 export RSTUDIO_VERSION_MINOR=$(cut -d'.' -f2 <<< "$pkgver")
286 export RSTUDIO_VERSION_PATCH=$(cut -d'.' -f3 <<< "$pkgver")
287 export RSTUDIO_VERSION_SUFFIX="+$(cut -d'.' -f4 <<< "$pkgver")"
288 export GIT_COMMIT="${_commit::7}"
289 export PACKAGE_OS=$(uname -om)
290
291 # node-gyp or node have a bug that prevents building with "text file busy"
292 # if the kernel is too fast, so we have to disable IO_URING support. This
293 # is cleary a hack and needs to be removed as soon as possible
294 # nodejs/node#48444 is the necro bumped thread
295 # originally from docker
296 # https://github.com/nodejs/node/issues/48444
297 export UV_USE_IO_URING=0
298
299 # -DCMAKE_INSTALL_PREFIX seems ignored for sub-dependencies,
300 # which results as empty '/usr/local/bin' in package
301 # Following override works for cmake >3.29
302 export CMAKE_INSTALL_PREFIX=/usr/lib/rstudio
303
304 local _opts_rstudio=(
305 -B build
306 -S "$_pkgsrc"
307 -G Ninja
308 -DCMAKE_BUILD_TYPE=None
309 -DBUILD_TESTING=OFF
310 -Wno-author
311
312 -DQUARTO_ENABLED=${_quarto}
313 -DRSTUDIO_DISABLE_CHECK_FOR_UPDATES=ON
314 -DRSTUDIO_NODE_VERSION="Current"
315 -DRSTUDIO_TARGET=Electron
316 -DRSTUDIO_UNIT_TESTS_ENABLED=OFF
317 -DRSTUDIO_USE_SYSTEM_BOOST=ON
318 -DRSTUDIO_USE_SYSTEM_SOCI=OFF
319 -DRSTUDIO_USE_SYSTEM_YAML_CPP=ON
320 )
321
322 echo "Building RStudio..."
323 cmake "${_opts_rstudio[@]}"
324 cmake --build build
325)
326
327package() {
328 DESTDIR="$pkgdir" cmake --install build
329
330 install -Dm755 /dev/stdin "${pkgdir}/usr/bin/rstudio" << END
331#!/usr/bin/env bash
332
333# See following script for potentially useful flags.
334# https://github.com/ozankiratli/dotfiles/blob/master/.config/sway/scripts/rstudio-wayland
335
336name=rstudio
337flags_file="\${XDG_CONFIG_HOME:-\$HOME/.config}/\${name}-flags.conf"
338fallback_file="\${XDG_CONFIG_HOME:-\$HOME/.config}/electron-flags.conf"
339
340lines=()
341if [[ -f "\${flags_file}" ]]; then
342 mapfile -t lines < "\${flags_file}"
343elif [[ -f "\${fallback_file}" ]]; then
344 mapfile -t lines < "\${fallback_file}"
345fi
346
347flags=()
348for line in "\${lines[@]}"; do
349 if [[ ! "\${line}" =~ ^[[:space:]]*#.* ]] && [[ -n "\${line}" ]]; then
350 flags+=("\${line}")
351 fi
352done
353
354: \${ELECTRON_IS_DEV:=0}
355export ELECTRON_IS_DEV
356: \${ELECTRON_FORCE_IS_PACKAGED:=true}
357export ELECTRON_FORCE_IS_PACKAGED
358
359exec /usr/lib/rstudio/rstudio "\${flags[@]}" "\$@"
360END
361}
362

Changes since previous scan

--- PKGBUILD @ 2026-07-23 05:22
+++ PKGBUILD @ 2026-10-28 07:49
@@ -8,21 +8,22 @@
## options
: ${_gwt_version:=2.12.2}
: ${_java_version:=17}
-: ${_nodeversion:=25}
-: ${_pandocver:=current}
+: ${_mathjax_version:=2.7.9}
+: ${_node_version:=25}
+: ${_pandoc_version:=current}
: ${_soci_version:=4.0.3}
: ${_quarto_branch:=release/rstudio-cranberry-hibiscus}
: ${_quarto:=false}
# dependencies/common/install-copilot-language-server
-: ${_copilot_version:=1.520.0}
-
-: ${_commit:=5c876cede63cf1ab4cfb57228c0f29ffb5059d9a}
+: ${_copilot_version:=1.531.0}
+
+: ${_commit:=870df5ed7859c758db7aed6f510a3edca3c74bd7}
_pkgname="rstudio-desktop"
pkgname="$_pkgname"
-pkgver=2026.07.0.139
+pkgver=2026.09.0.174
pkgrel=1
pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language"
url="https://github.com/rstudio/rstudio"
@@ -40,7 +41,7 @@
'libboost_thread.so' # boost-libs
'libcups'
'libyaml-cpp.so' # yaml-cpp
- 'mathjax2'
+ 'mathjax'
'nspr'
'nss'
'pandoc'
@@ -76,82 +77,41 @@
makedepends+=('quarto') # AUR
fi
-provides=("$_pkgname")
-conflicts=("$_pkgname")
-
options=('!emptydirs' '!debug' '!strip')
-_source_main() {
- _pkgsrc="rstudio-$_commit"
- local _pkgext="tar.gz"
- source=(
- "rstudio-$pkgver-${_commit::7}.$_pkgext"::"https://github.com/rstudio/rstudio/archive/$_commit.$_pkgext"
- "quarto"::"git+https://github.com/quarto-dev/quarto.git#branch=${_quarto_branch}"
- )
- sha256sums=(
- 'SKIP'
- 'SKIP'
- )
-}
-
-_source_gwt() {
- _pkgext_gwt="tar.gz"
- noextract+=("gwt-${_gwt_version}.$_pkgext_gwt")
- source+=("https://rstudio-buildtools.s3.us-east-1.amazonaws.com/gwt/gwt-${_gwt_version}.$_pkgext_gwt")
- sha256sums+=('27284accdad05ff8919a7ac6dc5f939a511a90842a35f6393517506d74809e76')
-}
-
-_source_soci() {
- local _pkgext_soci="tar.gz"
- source+=("soci-$_soci_version.$_pkgext_soci"::"https://github.com/SOCI/soci/archive/refs/tags/v$_soci_version.$_pkgext_soci")
- sha256sums+=('4b1ff9c8545c5d802fbe06ee6cd2886630e5c03bf740e269bb625b45cf934928')
-
- _build_soci() (
- echo "Building SOCI..."
- local _opts_soci=(
- -B "soci-$_soci_version/build"
- -S "soci-$_soci_version"
- -G Ninja
- -DCMAKE_BUILD_TYPE=None
- -DCMAKE_INSTALL_PREFIX='/usr'
- -DSOCI_TESTS=OFF
- -DSOCI_CXX11=ON
- -DSOCI_EMPTY=OFF
- -DWITH_BOOST=ON
- -DWITH_POSTGRESQL=ON
- -DWITH_SQLITE3=ON
- -DWITH_DB2=OFF
- -DWITH_MYSQL=OFF
- -DWITH_ORACLE=OFF
- -DWITH_FIREBIRD=OFF
- -DWITH_ODBC=OFF
- -DBUILD_SHARED_LIBS=OFF
- -Wno-dev
- )
-
- cmake "${_opts_soci[@]}"
- cmake --build "soci-$_soci_version/build"
- )
-}
-
-_source_copilot() {
- _copilot_js="copilot-language-server-js-${_copilot_version}"
-
- noextract+=("${_copilot_js}.zip")
-
- local _copilot_url="https://github.com/github/copilot-language-server-release"
- source+=("$_copilot_url/releases/download/${_copilot_version}/copilot-language-server-linux-x64-${_copilot_version}.zip"
- "$_copilot_url/releases/download/${_copilot_version}/${_copilot_js}.zip")
- sha256sums+=(
- 'SKIP'
- 'SKIP'
- )
-}
-
-_source_main
-_source_gwt
-_source_soci
-_source_copilot
+_pkgsrc="rstudio-$_commit"
+_pkgsrc_mathjax="MathJax-$_mathjax_version"
+_pkgext="tar.gz"
+
+_copilot_js="copilot-language-server-js-${_copilot_version}"
+_copilot_url="https://github.com/github/copilot-language-server-release"
+
+noextract=(
+ "${_copilot_js}.zip"
+ "${_pkgsrc_mathjax}.${_pkgext}"
+ "gwt-${_gwt_version}.${_pkgext}"
+)
+
+source=(
+ "rstudio-$pkgver-${_commit::7}.$_pkgext"::"https://github.com/rstudio/rstudio/archive/$_commit.$_pkgext"
+ "quarto"::"git+https://github.com/quarto-dev/quarto.git#branch=${_quarto_branch}"
+
+ "https://rstudio-buildtools.s3.us-east-1.amazonaws.com/gwt/gwt-${_gwt_version}.$_pkgext"
+ "soci-$_soci_version.$_pkgext"::"https://github.com/SOCI/soci/archive/refs/tags/v$_soci_version.$_pkgext"
+ "$_pkgsrc_mathjax.$_pkgext"::"https://github.com/mathjax/MathJax/archive/refs/tags/$_mathjax_version.$_pkgext"
+
+ "$_copilot_url/releases/download/${_copilot_version}/copilot-language-server-linux-x64-${_copilot_version}.zip"
+ "$_copilot_url/releases/download/${_copilot_version}/${_copilot_js}.zip"
+)
+sha256sums=(
+ 'SKIP'
+ 'SKIP'
+ '27284accdad05ff8919a7ac6dc5f939a511a90842a35f6393517506d74809e76'
+ '4b1ff9c8545c5d802fbe06ee6cd2886630e5c03bf740e269bb625b45cf934928'
+ 'c9167279c87da044f2ff910ad573a02ce90354cb59440ae568eb86e1630f65df'
+ 'SKIP'
+ 'SKIP'
+)
_nvm_env() {
export HOME="$SRCDEST/node-home"
@@ -159,8 +119,8 @@
# set up nvm
source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]]
- nvm install $_nodeversion
- nvm use $_nodeversion
+ nvm install $_node_version
+ nvm use $_node_version
_npm_path="$(which npm | sed -E 's&/[^/]+$&&')"
_node_version=$(echo "$_npm_path" | sed -E 's&^\S+/v([0-9\.]+)/\S+$&\1&')
@@ -172,10 +132,14 @@
cd "$_pkgsrc"
# Do not use outdated version name of pandoc
- sed -E -e '/PANDOC_VERSION/s/"[0-9\.]+"/"'${_pandocver}'"/' -i cmake/globals.cmake
+ sed -E -e '/PANDOC_VERSION/s/"[0-9\.]+"/"'${_pandoc_version}'"/' -i cmake/globals.cmake
# Suppress _FORTIFY_SOURCE mismatch warnings
sed -e 's/D_FORTIFY_SOURCE=2/D_FORTIFY_SOURCE=3/' -i src/cpp/CMakeLists.txt
+
+ # Prevent Boost.URL 1.92 linker error
+ sed -E -e 's&([Cc]\+\+)17&\120&g' -i src/cpp/CMakeLists.txt
+ sed -E -e 's&(CMAKE_CXX_STANDARD) 17&\1 20&' -i cmake/compiler.cmake
# fix npm/node paths
sed -E -e 's&set\(RSTUDIO_NODE_PATH .*\)&set(RSTUDIO_NODE_PATH "/usr/bin")&' \
@@ -211,13 +175,17 @@
# bundled deps
cd "$srcdir/$_pkgsrc/dependencies"
- install -d pandoc/${_pandocver}
- ln -sfT /usr/bin/pandoc pandoc/${_pandocver}/pandoc
+ mkdir -p pandoc/${_pandoc_version}
+ ln -sfT /usr/bin/pandoc pandoc/${_pandoc_version}/pandoc
ln -sfT /usr/share/myspell/dicts dictionaries
- ln -sfT /usr/share/mathjax2 mathjax-27
+ ln -sfT /usr/share/mathjax mathjax-4
ln -sfT "$srcdir/soci-$_soci_version" "soci-$_soci_version"
+
+ # mathjax 2.7
+ mkdir -p mathjax-27
+ bsdtar -C mathjax-27 --strip-components 1 -xf "$srcdir/$_pkgsrc_mathjax.$_pkgext"
# copilot
install -Dm755 "$srcdir/copilot-language-server" -t "copilot-language-server"
@@ -229,38 +197,59 @@
# GWT
mkdir -p common/gwtproject
- cd common/gwtproject
- bsdtar -xf "$srcdir/gwt-$_gwt_version.$_pkgext_gwt"
-)
-
-build() (
- export JAVA_HOME=/usr/lib/jvm/java-${_java_version:?}-openjdk
- export PATH="$JAVA_HOME/bin:$PATH"
-
- export CMAKE_POLICY_VERSION_MINIMUM=3.5
-
- _nvm_env
-
- echo "Building soci..."
- _build_soci
-
+ bsdtar -C common/gwtproject -xf "$srcdir/gwt-$_gwt_version.$_pkgext"
+)
+
+_build_soci() (
+ echo "Building SOCI..."
+ local _opts_soci=(
+ -B "soci-$_soci_version/build"
+ -S "soci-$_soci_version"
+ -G Ninja
+ -DCMAKE_BUILD_TYPE=None
+ -DCMAKE_INSTALL_PREFIX='/usr'
+ -DCMAKE_POLICY_VERSION_MINIMUM=3.5
+ -DBUILD_SHARED_LIBS=OFF
+ -Wno-author
+
+ -DSOCI_TESTS=OFF
+ -DSOCI_CXX11=ON
+ -DSOCI_EMPTY=OFF
+ -DWITH_BOOST=ON
+ -DWITH_POSTGRESQL=ON
+ -DWITH_SQLITE3=ON
+ -DWITH_DB2=OFF
+ -DWITH_MYSQL=OFF
+ -DWITH_ORACLE=OFF
+ -DWITH_FIREBIRD=OFF
+ -DWITH_ODBC=OFF
+ )
+
+ cmake "${_opts_soci[@]}"
+ cmake --build "soci-$_soci_version/build"
+)
+
+_setup_quarto() {
# Quarto set up
if (pacman -Q quarto > /dev/null 2> /dev/null); then
_quarto="ON"
echo "Quarto is installed, linking for build"
- cd "$srcdir/$_pkgsrc/dependencies"
- install -d quarto/bin/tools
+ pushd "$srcdir/$_pkgsrc/dependencies" &> /dev/null
+ mkdir -p quarto/bin/tools
ln -sfT /usr/bin/quarto quarto/bin/quarto
ln -sfT /usr/bin/pandoc quarto/bin/tools/pandoc
+ popd &> /dev/null
else
_quarto="OFF"
echo "Quarto is not installed, using Pandoc"
- cd "$srcdir/$_pkgsrc/dependencies"
- install -d pandoc/${_pandocver}/bin/tools
- ln -sfT /usr/bin/pandoc pandoc/${_pandocver}/bin/tools/pandoc
+ pushd "$srcdir/$_pkgsrc/dependencies" &> /dev/null
+ mkdir -p "pandoc/${_pandoc_version}/bin/tools"
+ ln -sfT /usr/bin/pandoc "pandoc/${_pandoc_version}/bin/tools/pandoc"
+ popd &> /dev/null
fi
-
- cd "${srcdir}"
+}
+
+_setup_rpkg() {
echo "Downloading and installing R packages..."
export R_LIBS_USER="$srcdir/$_pkgsrc/dependencies/R"
_JOBS="$(grep -oP -- "-j\s*\K[0-9]+" <<< "${MAKEFLAGS}")" || _JOBS="1"
@@ -273,11 +262,22 @@
xml2
yaml
)
- for RPKG in ${RPACKAGES[*]}; do
+ for RPKG in "${RPACKAGES[@]}"; do
RINSTALLCMD="if("'!'"require($RPKG, quietly = TRUE)) { options(Ncpus = ${_JOBS} ); install.packages('$RPKG', lib='$R_LIBS_USER', repos='https://cran.rstudio.com/') }"
echo "> $RINSTALLCMD"
Rscript -e "$RINSTALLCMD"
done
+}
+
+build() (
+ export JAVA_HOME=/usr/lib/jvm/java-${_java_version:?}-openjdk
+ export PATH="$JAVA_HOME/bin:$PATH"
+
+ _nvm_env
+ _build_soci
+
+ _setup_quarto
+ _setup_rpkg
export RSTUDIO_TOOLS_ROOT="$srcdir/$_pkgsrc/dependencies"
export RSTUDIO_NODE_PATH=/usr/
@@ -307,7 +307,7 @@
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DBUILD_TESTING=OFF
- -Wno-dev
+ -Wno-author
-DQUARTO_ENABLED=${_quarto}
-DRSTUDIO_DISABLE_CHECK_FOR_UPDATES=ON
@@ -319,6 +319,7 @@
-DRSTUDIO_USE_SYSTEM_YAML_CPP=ON
)
+ echo "Building RStudio..."
cmake "${_opts_rstudio[@]}"
cmake --build build
)

Scan history

Scanned at (UTC)SeverityRules
2026-10-28 07:49:59 Medium 1
2026-07-23 05:22:32 Clean 0
2026-07-15 19:49:33 Clean 0
2026-07-09 05:30:23 Clean 0
2026-06-18 16:11:54 Clean 0

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion