Ubuntu 20 builds were switched to the default reference BLAS because of a bug with the OpenBLAS package. That bug does not seem to affect Ubuntu 22, so switch back to using OpenBLAS for Ubuntu 22, for consistency with all other R builds.
58 lines
1.3 KiB
Shell
58 lines
1.3 KiB
Shell
#!/bin/bash
|
|
|
|
if [[ ! -d /tmp/output/ubuntu-2204 ]]; then
|
|
mkdir -p /tmp/output/ubuntu-2204
|
|
fi
|
|
|
|
# R 3.x requires PCRE1. On Ubuntu 22, R 3.x also requires PCRE2 for Pango support.
|
|
pcre_lib_flags='-d libpcre2-dev'
|
|
if [[ "${R_VERSION}" =~ ^3 ]]; then
|
|
pcre_lib_flags='-d libpcre2-dev -d libpcre3-dev'
|
|
fi
|
|
|
|
fpm \
|
|
-s dir \
|
|
-t deb \
|
|
-v 1 \
|
|
-n R-${R_VERSION} \
|
|
--vendor "RStudio, PBC" \
|
|
--deb-priority "optional" \
|
|
--deb-field 'Bugs: https://github.com/rstudio/r-builds/issues' \
|
|
--url "http://www.r-project.org/" \
|
|
--description "GNU R statistical computation and graphics system" \
|
|
--maintainer "RStudio, PBC https://github.com/rstudio/r-builds" \
|
|
--license "GPL-2" \
|
|
-p /tmp/output/ubuntu-2204/ \
|
|
-d g++ \
|
|
-d gcc \
|
|
-d gfortran \
|
|
-d libbz2-dev \
|
|
-d libc6 \
|
|
-d libcairo2 \
|
|
-d libcurl4 \
|
|
-d libglib2.0-0 \
|
|
-d libgomp1 \
|
|
-d libicu-dev \
|
|
-d libjpeg8 \
|
|
-d liblzma-dev \
|
|
-d libopenblas-dev \
|
|
-d libpango-1.0-0 \
|
|
-d libpangocairo-1.0-0 \
|
|
-d libpaper-utils \
|
|
${pcre_lib_flags} \
|
|
-d libpng16-16 \
|
|
-d libreadline8 \
|
|
-d libtcl8.6 \
|
|
-d libtiff5 \
|
|
-d libtk8.6 \
|
|
-d libx11-6 \
|
|
-d libxt6 \
|
|
-d make \
|
|
-d ucf \
|
|
-d unzip \
|
|
-d zip \
|
|
-d zlib1g-dev \
|
|
/opt/R/${R_VERSION}
|
|
|
|
shopt -s extglob
|
|
export PKG_FILE=$(ls /tmp/output/ubuntu-2204/[rR]-${R_VERSION}*.@(deb|rpm) | head -1)
|