LibreOffice: fix build 6.4.7.2 version (6.x for 32bit only)

This commit is contained in:
Gerasim Troeglazov
2020-12-19 12:15:53 +10:00
parent 9972429300
commit 34e34694a2

View File

@@ -17,7 +17,7 @@ and Open Source office suite on the market:
HOMEPAGE="https://www.libreoffice.org/"
COPYRIGHT="2000-2020 LibreOffice contributors"
LICENSE="MPL v2.0"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/LibreOffice/core/archive/libreoffice-$portVersion.tar.gz"
SOURCE_DIR="core-libreoffice-$portVersion"
@@ -42,16 +42,15 @@ ADDITIONAL_FILES="
"
POST_INSTALL_SCRIPTS="$relativePostInstallDir/create_buildid.sh"
# Build for secondary arch only
ARCHITECTURES="!x86_gcc2 !x86 !x86_64"
if [ "$targetArchitecture" = x86_gcc2 ]; then
SECONDARY_ARCHITECTURES="x86"
fi
boostMinimumVersion=1.69.0
libreofficeLanguages="af ar be bg bn br brx bs ca ca-valencia cs cy da de dsb el en-GB en-ZA eo es et eu fa fi fr fy ga gd gl he hi hr hu id is it ja ka kk kmr-Latn ko lb lt lv mk mn nb ne nl nn pl pt pt-BR ro ru sa-IN sd sk sl sq sr sr-Latn sv szl tg th tr tt ug uk uz vi zh-CN zh-TW"
PROVIDES="
libreoffice6$secondaryArchSuffix = $portVersion
libreoffice$secondaryArchSuffix = $portVersion
app:LibreOffice$secondaryArchSuffix = $portVersion
"
REQUIRES="
@@ -141,20 +140,20 @@ REQUIRES="
ARCHITECTURES_galleries="any"
PROVIDES_galleries="
libreoffice6${secondaryArchSuffix}_galleries = $portVersion
libreoffice${secondaryArchSuffix}_galleries = $portVersion
"
REQUIRES_galleries="
libreoffice6$secondaryArchSuffix == $portVersion base
libreoffice$secondaryArchSuffix == $portVersion base
"
for lang in $libreofficeLanguages; do
typeset -l langcode
langcode=${lang/-/_}
eval "PROVIDES_${langcode}=\"\
libreoffice6${secondaryArchSuffix}_${langcode} = $portVersion\
libreoffice${secondaryArchSuffix}_${langcode} = $portVersion\
\"; \
REQUIRES_${langcode}=\"\
libreoffice6$secondaryArchSuffix == $portVersion base\
libreoffice$secondaryArchSuffix == $portVersion base\
\"; \
DESCRIPTION_${langcode}=\"Translations for the Libreoffice suite ($lang)\"; \
ARCHITECTURES_${langcode}=\"any\""
@@ -325,8 +324,9 @@ INSTALL()
mv $sourceDir3/src/LibreOffice\ {Calc,Database,Draw,Impress,Math,Writer} $appDir
# make sure we do not copy default profile
rm -rf $appDir/user
rm -rf $appDir/share/xdg
rm -rf $appDir/user $appDir/share/xdg
mkdir -p "$dataDir/deskbar/menu/Applications/LibreOffice"
packageEntries galleries \
$appDir/share/gallery $appDir/presets/gallery
@@ -376,6 +376,7 @@ INSTALL()
addResourcesToBinaries $sourceDir/../core/libreoffice.rdef \
$appDir/program/LibreOffice
mimeset -f $appDir/program/LibreOffice
addAppDeskbarSymlink $appDir/program/LibreOffice "LibreOffice/LibreOffice"
addAppDeskbarSymlink "$appDir/LibreOffice Calc" "LibreOffice/LibreOffice Calc"