Tell arch to nfpm

This commit is contained in:
Gábor Csárdi 2023-01-10 19:45:32 +01:00
commit 3e927c5055

View file

@ -23,10 +23,13 @@ if [ -d /opt/R/${R_VERSION} ]; then
fi
EOF
if [ "$(arch)" == "aarch64" ]; then echo arm64; else echo amd64; fi > /tmp/arch
cat <<EOF > /tmp/nfpm.yml
name: R-${R_VERSION}
version: 1
version_schema: none
arch: $(cat /tmp/arch)
release: 1
maintainer: RStudio, PBC <https://github.com/rstudio/r-builds>
description: |