[Slackbuilds-users] Updates - 20081016
Thomas Morper
thomditom at aktiivi.ath.cx
Thu Oct 16 23:47:10 UTC 2008
Am Donnerstag, 16. Oktober 2008 06:50:40 schrieb Robby Workman:
> office/openoffice.org: Bugfix to add the various dictionaries (en, es,
> fr) included with the prepackaged binaries in such a way that they're
> actually installed via the extension manager.
> If I missed anything else, let me know. --rworkman
This latest fix can make the build fail when you're using one of the
localized OOo-versions, because these don't necessarily contain the
same (en, es, fr) dictionaries. The German version, for example, has
additional German and Italian dictionaries, but misses the Spanish one.
A possible solution would be to find and install dictionary extensions
dynamically:
--- openoffice.org.SlackBuild 2008-10-15 22:31:16.000000000 +0200
+++ openoffice.org.SlackBuild.new 2008-10-17 01:11:01.152418973 +0200
@@ -94,11 +94,10 @@
# Install dictionary extensions for spellchecking
if [ -x "$PKG/opt/openoffice.org3/program/unopkg" ]; then
UNOPKGTMP=$TMP/$$$$$$
- for DICT_LANG in en es fr ; do
- $PKG/opt/openoffice.org3/program/unopkg add --shared --shared \
- $PKG/opt/openoffice.org3/share/extension/install/dict-$DICT_LANG.oxt \
- "-env:UserInstallation=file:///$UNOPKGTMP" ;
- done
+ find $PKG/opt/openoffice.org3/share/extension/install \
+ -type f -name 'dict-*.oxt' \
+ -exec $PKG/opt/openoffice.org3/program/unopkg add --shared {} \
+ "-env:UserInstallation=file:///$UNOPKGTMP" \;
rm -rf $UNOPKGTMP
fi
This seems to work for me. Any comments?
--
More information about the SlackBuilds-users
mailing list