Merge pull request #204 from rstudio/fix/deflate

Fix devel builds for libdeflate
This commit is contained in:
Gábor Csárdi 2024-02-20 21:25:44 +01:00 committed by GitHub
commit 6a3ab6905e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,11 @@ if [[ "${R_VERSION}" =~ ^3 ]]; then
- libpcre3-dev'
fi
deflate_libs='# - libdeflate-dev'
if grep -q '^LIBS *=.*[-]ldeflate' ${R_INSTALL_PATH}/lib/R/etc/Makeconf; then
deflate_libs='- libdeflate-dev'
fi
cat <<EOF > /tmp/nfpm.yml
name: r-${R_VERSION}
version: 1
@ -35,6 +40,7 @@ depends:
- libc6
- libcairo2
- libcurl4
${deflate_libs}
- libglib2.0-0
- libgomp1
- libicu-dev