I tried to build LibreOffice 7.5.1.2 from
slackbuilds.org for a Raspberry Pi 4B.
After about 12 hours of compilation it is almost ready, however the builing stopped with:
LibreOffice.SlackBuild: line 329: unexpected EOF while looking for matching `''
Below is a part of the LibreOffice.Slackbuild file with line numbers added:
320 # Only enable pyuno if requested
321 if [ "${PYUNO:-no}" == "yes" ]; then
322 # Use the system python if we have it, else use the python just built with LibreOffice
323 PYTHONEXE=$(which python3) || PYTHONEXE=$PKG/usr/lib$LIBDIRSUFFIX/$SRCNAM/program/python
324 PYSITEDIR=$($PYTHONEXE -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
325 mkdir -p $PKG/$PYSITEDIR
326 cat <<EOF >$PKG/$PYSITEDIR/pyuno.pth
327 import sys; sys.path.insert(0,'/usr/lib$LIBDIRSUFFIX/libreoffice/program')
328 EOF
329 chmod 0644 $PKG/$PYSITEDIR/pyuno.pth
330 fi
331
332 mkdir -p $PKG/etc/profile.d
333 sd_prog=/usr/lib$LIBDIRSUFFIX/libreoffice/program
334 cat <<EOF >$PKG/etc/profile.d/libreoffice.sh
335 export UNO_PATH=$sd_prog
336 export URE_BOOTSTRAP=vnd.sun.star.pathname:$sd_prog/fundamentalrc
337 export PATH=\${PATH}:$sd_prog
338 EOF
339 cat <<EOF >$PKG/etc/profile.d/libreoffice.csh
340 setenv UNO_PATH $sd_prog
341 setenv URE_BOOTSTRAP vnd.sun.star.pathname:$sd_prog/fundamentalrc
342 setenv PATH \${PATH}:$sd_prog
343 EOF
344 chmod 0755 $PKG/etc/profile.d/libreoffice.{csh,sh}
345
It has been build by "
JAVA=no sh LibreOffice.SlackBuild", so UNOPY will not be used.
What should be adapted to the build script?