diff options
author | Aleksandr Beliaev | 2022-04-28 12:08:53 +1200 |
---|---|---|
committer | Aleksandr Beliaev | 2022-04-28 12:08:53 +1200 |
commit | 82090c3ddb6501921474df50fa5fe34d40522412 (patch) | |
tree | 149539d4d1773a6846a93eb181e7a360b33b6b8d /PKGBUILD | |
parent | 9d3dcd9388c2ecf293f37e58830450592e49fc1d (diff) | |
download | aur-82090c3ddb6501921474df50fa5fe34d40522412.tar.gz |
Fix pandoc location when quarto is not installed
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -14,9 +14,10 @@ _srcname=rstudio-${_vermajor}.${_verminor}.${_verpatch}${_versuffix//+/-} _gwtver=2.8.2 _ginver=2.1.2 _nodever=14.17.5 +_pandocver="current" _quarto="FALSE" -pkgrel=2 +pkgrel=3 pkgdesc="A powerful and productive integrated development environment (IDE) for R programming language" arch=('x86_64') url="https://www.rstudio.com/products/rstudio/" @@ -38,7 +39,8 @@ source=("rstudio-$pkgver.tar.gz::https://github.com/rstudio/rstudio/archive/refs "cran_multithread.patch" "sigstksz_gcc11.patch" "10952.patch" - "quarto_pandoc_location.patch") + "quarto_pandoc_location.patch" + "pandoc_version.patch") sha256sums=('41e48e21ddc0a9c1ebf06ff16d846b0389720f2ee66d3fcfd5ff0707578b597d' 'b98e704164f54be596779696a3fcd11be5785c9907a99ec535ff6e9525ad5f9a' @@ -48,7 +50,8 @@ sha256sums=('41e48e21ddc0a9c1ebf06ff16d846b0389720f2ee66d3fcfd5ff0707578b597d' 'c907e6eec5ef324ad498b44fb9926bb5baafc4e0778ca01f6ba9b49dd3a2a980' '7b8420db08f848f7baac0f3104c879ac7ce6e27e463f96a6b1c6589cd4b8df82' '71c41818d099c07d928aa9689a5fd57bb3dc187b9788a8d5cc528ef6208b7726' - 'f496c8d012ec7211b7d76240932c1b33fc76c5bb756b354eb00dd5c4344baeab') + 'f496c8d012ec7211b7d76240932c1b33fc76c5bb756b354eb00dd5c4344baeab' + '71cc9986a02c209960309f0e1dd50f08a8f7e59c1bc09ec45d10058a89299939') noextract=("gin-${_ginver}.zip") @@ -61,8 +64,9 @@ prepare() { # Fix for quarto/pandoc location # https://github.com/rstudio/rstudio/pull/10952 patch -p1 < ${srcdir}/10952.patch - # Fix for missed path to new pandoc location in upstream patch -p1 < ${srcdir}/quarto_pandoc_location.patch + # Do not use outdated version name of pandoc + patch -p1 < ${srcdir}/pandoc_version.patch msg "Extracting dependencies..." cd "${srcdir}/${_srcname}/src/gwt" @@ -71,7 +75,7 @@ prepare() { cp -r "${srcdir}/gwt-${_gwtver}/"* lib/gwt/${_gwtver} cd "${srcdir}/${_srcname}/dependencies/common" - _pandocver=$(grep -oP "(?<=PANDOC_VERSION=\").*(?=\"$)" install-pandoc) + #_pandocver=$(grep -oP "(?<=PANDOC_VERSION=\").*(?=\"$)" install-pandoc) install -d pandoc/${_pandocver} ln -sfT /usr/share/myspell/dicts dictionaries @@ -105,6 +109,11 @@ build() { install -d quarto/bin/tools ln -sfT /usr/bin/quarto quarto/bin/quarto ln -sfT /usr/bin/pandoc quarto/bin/tools/pandoc + else + msg "Use pandoc, because Quarto is not used..." + cd "${srcdir}/${_srcname}/dependencies" + install -d pandoc/${_pandocver}/bin/tools + ln -sfT /usr/bin/pandoc pandoc/${_pandocver}/bin/tools/pandoc fi cd ${srcdir} |