diff options
author | Eric Hameleers <alien@slackware.com> | 2011-05-09 17:56:19 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2011-05-09 17:56:19 +0000 |
commit | bb8bedd17ea1bc682b660d37f75cd6e1e46fd777 (patch) | |
tree | e3e22b6aaab15f371bf05c44cf611c73f9389a4d /libreoffice/build/libreoffice36.SlackBuild | |
parent | 96f025e15b22698d19b83d0fb1416459f2e8a04b (diff) | |
download | asb-bb8bedd17ea1bc682b660d37f75cd6e1e46fd777.tar.gz asb-bb8bedd17ea1bc682b660d37f75cd6e1e46fd777.tar.xz |
The SlackBuild for libreoffice-3.3.99.4 - went through a lot of testing.
Diffstat (limited to '')
-rwxr-xr-x | libreoffice/build/libreoffice36.SlackBuild | 488 |
1 files changed, 308 insertions, 180 deletions
diff --git a/libreoffice/build/libreoffice36.SlackBuild b/libreoffice/build/libreoffice36.SlackBuild index b8388174..5ef5e4e6 100755 --- a/libreoffice/build/libreoffice36.SlackBuild +++ b/libreoffice/build/libreoffice36.SlackBuild @@ -1,6 +1,5 @@ #!/bin/sh # $Id$ -# # Copyright 2010, 2011 Eric Hameleers, Eindhoven, NL # All rights reserved. # @@ -80,6 +79,12 @@ # The SlackBuild has been updated to use new LibreOffice menu # icons instead of the old OOo versions. # Also add italian dictionary (request). +# 3.3.99.4-1: 09/may/2011 by Eric Hameleers <alien@slackware.com> +# * Beta 4 of the new major release. +# Added german dictionary (dict-de-DE_frami) on request. +# Stopped building from the 'build' tarball since that seems +# to be deprecated soon. Stupid decision folks! It makes proper +# packaging so much harder. # # Run 'sh libreoffice.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -104,8 +109,8 @@ TAG=${TAG:-alien} #SRCVER=${SRCVER:-HEAD} #SRCVER=${SRCVER:-3.3.0.4} -SRCVER=${SRCVER:-3.3.2} -SUBVER=".2" +SRCVER=${SRCVER:-3.3.99.4} +SUBVER="" # If we pull a git shapshot, use today's date as the VERSION: # If we are building offline, we do not want git checks: @@ -162,10 +167,10 @@ GITBASE="git://anongit.freedesktop.org/git/libreoffice" # impress libs-gui libs-core libs-extern postprocess sdk testing # ure writer libs-extern-sys extensions l10n -# We will need the "build" tarball first. +# We will need the "bootstrap" tarball first. # Use SRCURL for tarball releases and GITURI for git snapshots: -SOURCE[0]="$SRCDIR/sources/libreoffice-build-${VERSION}${SUBVER}.tar.gz" -SRCURL[0]="$SRCBASE/libreoffice-build-${VERSION}${SUBVER}.tar.gz" +SOURCE[0]="$SRCDIR/sources/libreoffice-bootstrap-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[0]="$SRCBASE/libreoffice-bootstrap-${VERSION}${SUBVER}.tar.${COMPR}" GITURI[0]="$GITBASE/build" # And the rest... @@ -177,95 +182,91 @@ SOURCE[2]="$SRCDIR/sources/libreoffice-base-${VERSION}${SUBVER}.tar.${COMPR}" SRCURL[2]="$SRCBASE/libreoffice-base-${VERSION}${SUBVER}.tar.${COMPR}" GITURI[2]="$GITBASE/base" -SOURCE[3]="$SRCDIR/sources/libreoffice-bootstrap-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[3]="$SRCBASE/libreoffice-bootstrap-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[3]="$GITBASE/bootstrap" - -SOURCE[4]="$SRCDIR/sources/libreoffice-calc-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[4]="$SRCBASE/libreoffice-calc-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[4]="$GITBASE/calc" +SOURCE[3]="$SRCDIR/sources/libreoffice-calc-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[3]="$SRCBASE/libreoffice-calc-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[3]="$GITBASE/calc" -SOURCE[5]="$SRCDIR/sources/libreoffice-components-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[5]="$SRCBASE/libreoffice-components-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[5]="$GITBASE/components" +SOURCE[4]="$SRCDIR/sources/libreoffice-components-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[4]="$SRCBASE/libreoffice-components-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[4]="$GITBASE/components" -SOURCE[6]="$SRCDIR/sources/libreoffice-extras-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[6]="$SRCBASE/libreoffice-extras-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[6]="$GITBASE/extras" +SOURCE[5]="$SRCDIR/sources/libreoffice-extras-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[5]="$SRCBASE/libreoffice-extras-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[5]="$GITBASE/extras" -SOURCE[7]="$SRCDIR/sources/libreoffice-filters-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[7]="$SRCBASE/libreoffice-filters-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[7]="$GITBASE/filters" +SOURCE[6]="$SRCDIR/sources/libreoffice-filters-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[6]="$SRCBASE/libreoffice-filters-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[6]="$GITBASE/filters" -SOURCE[8]="$SRCDIR/sources/libreoffice-help-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[8]="$SRCBASE/libreoffice-help-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[8]="$GITBASE/help" +SOURCE[7]="$SRCDIR/sources/libreoffice-help-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[7]="$SRCBASE/libreoffice-help-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[7]="$GITBASE/help" -SOURCE[9]="$SRCDIR/sources/libreoffice-impress-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[9]="$SRCBASE/libreoffice-impress-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[9]="$GITBASE/impress" +SOURCE[8]="$SRCDIR/sources/libreoffice-impress-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[8]="$SRCBASE/libreoffice-impress-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[8]="$GITBASE/impress" -SOURCE[10]="$SRCDIR/sources/libreoffice-libs-gui-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[10]="$SRCBASE/libreoffice-libs-gui-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[10]="$GITBASE/libs-gui" +SOURCE[9]="$SRCDIR/sources/libreoffice-libs-gui-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[9]="$SRCBASE/libreoffice-libs-gui-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[9]="$GITBASE/libs-gui" -SOURCE[11]="$SRCDIR/sources/libreoffice-libs-core-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[11]="$SRCBASE/libreoffice-libs-core-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[11]="$GITBASE/libs-core" +SOURCE[10]="$SRCDIR/sources/libreoffice-libs-core-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[10]="$SRCBASE/libreoffice-libs-core-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[10]="$GITBASE/libs-core" -SOURCE[12]="$SRCDIR/sources/libreoffice-libs-extern-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[12]="$SRCBASE/libreoffice-libs-extern-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[12]="$GITBASE/libs-extern" +SOURCE[11]="$SRCDIR/sources/libreoffice-libs-extern-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[11]="$SRCBASE/libreoffice-libs-extern-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[11]="$GITBASE/libs-extern" -SOURCE[13]="$SRCDIR/sources/libreoffice-postprocess-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[13]="$SRCBASE/libreoffice-postprocess-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[13]="$GITBASE/postprocess" +SOURCE[12]="$SRCDIR/sources/libreoffice-postprocess-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[12]="$SRCBASE/libreoffice-postprocess-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[12]="$GITBASE/postprocess" -SOURCE[14]="$SRCDIR/sources/libreoffice-sdk-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[14]="$SRCBASE/libreoffice-sdk-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[14]="$GITBASE/sdk" +SOURCE[13]="$SRCDIR/sources/libreoffice-sdk-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[13]="$SRCBASE/libreoffice-sdk-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[13]="$GITBASE/sdk" -SOURCE[15]="$SRCDIR/sources/libreoffice-testing-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[15]="$SRCBASE/libreoffice-testing-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[15]="$GITBASE/testing" +SOURCE[14]="$SRCDIR/sources/libreoffice-testing-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[14]="$SRCBASE/libreoffice-testing-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[14]="$GITBASE/testing" -SOURCE[16]="$SRCDIR/sources/libreoffice-ure-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[16]="$SRCBASE/libreoffice-ure-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[16]="$GITBASE/ure" +SOURCE[15]="$SRCDIR/sources/libreoffice-ure-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[15]="$SRCBASE/libreoffice-ure-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[15]="$GITBASE/ure" -SOURCE[17]="$SRCDIR/sources/libreoffice-writer-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[17]="$SRCBASE/libreoffice-writer-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[17]="$GITBASE/writer" +SOURCE[16]="$SRCDIR/sources/libreoffice-writer-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[16]="$SRCBASE/libreoffice-writer-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[16]="$GITBASE/writer" -SOURCE[18]="$SRCDIR/sources/libreoffice-libs-extern-sys-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[18]="$SRCBASE/libreoffice-libs-extern-sys-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[18]="$GITBASE/libs-extern-sys" +SOURCE[17]="$SRCDIR/sources/libreoffice-libs-extern-sys-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[17]="$SRCBASE/libreoffice-libs-extern-sys-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[17]="$GITBASE/libs-extern-sys" -SOURCE[19]="$SRCDIR/sources/libreoffice-extensions-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[19]="$SRCBASE/libreoffice-extensions-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[19]="$GITBASE/extensions" +SOURCE[18]="$SRCDIR/sources/libreoffice-extensions-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[18]="$SRCBASE/libreoffice-extensions-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[18]="$GITBASE/extensions" -SOURCE[20]="$SRCDIR/sources/libreoffice-l10n-${VERSION}${SUBVER}.tar.${COMPR}" -SRCURL[20]="$SRCBASE/libreoffice-l10n-${VERSION}${SUBVER}.tar.${COMPR}" -GITURI[20]="$GITBASE/l10n" +SOURCE[19]="$SRCDIR/sources/libreoffice-translations-${VERSION}${SUBVER}.tar.${COMPR}" +SRCURL[19]="$SRCBASE/libreoffice-translations-${VERSION}${SUBVER}.tar.${COMPR}" +GITURI[19]="$GITBASE/l10n" # Extra libraries / binaries required to build LibreOffice from source: -SOURCE[21]="$SRCDIR/sources/ooo-cli-prebuilt-3.3.tar.bz2" -SRCURL[21]="http://download.go-oo.org//DEV300/ooo-cli-prebuilt-3.3.tar.bz2" +SOURCE[20]="$SRCDIR/sources/ooo-cli-prebuilt-3.3.tar.bz2" +SRCURL[20]="http://download.go-oo.org//DEV300/ooo-cli-prebuilt-3.3.tar.bz2" -SOURCE[22]="$SRCDIR/sources/cairo-1.4.10.tar.gz" -SRCURL[22]="http://cairographics.org/releases//cairo-1.4.10.tar.gz" +SOURCE[21]="$SRCDIR/sources/cairo-1.4.10.tar.gz" +SRCURL[21]="http://cairographics.org/releases//cairo-1.4.10.tar.gz" -SOURCE[23]="$SRCDIR/sources/mdbtools-0.6pre1.tar.gz" -SRCURL[23]="http://download.go-oo.org//SRC680/mdbtools-0.6pre1.tar.gz" +SOURCE[22]="$SRCDIR/sources/mdbtools-0.6pre1.tar.gz" +SRCURL[22]="http://download.go-oo.org//SRC680/mdbtools-0.6pre1.tar.gz" # Gzipped archive erroneously named .bz2 : -SOURCE[24]="$SRCDIR/sources/extras-3.1.tar.gz" -SRCURL[24]="http://download.go-oo.org//SRC680/extras-3.1.tar.bz2" +SOURCE[23]="$SRCDIR/sources/extras-3.1.tar.gz" +SRCURL[23]="http://download.go-oo.org//SRC680/extras-3.1.tar.bz2" -SOURCE[25]="$SRCDIR/sources/biblio.tar.bz2" -SRCURL[25]="http://download.go-oo.org//SRC680/biblio.tar.bz2" +SOURCE[24]="$SRCDIR/sources/biblio.tar.bz2" +SRCURL[24]="http://download.go-oo.org//SRC680/biblio.tar.bz2" # Further tarballs of which I am not sure which one are really needed. # The list can be obtained by running ($VERSION being an actual git tag): @@ -275,14 +276,16 @@ SRCURL[25]="http://download.go-oo.org//SRC680/biblio.tar.bz2" # (it should output nothing): # for FILE in `wget -q -O - "http://cgit.freedesktop.org/libreoffice/bootstrap/plain/ooo.lst?id=$(echo $PRGNAM-$VERSION)" | grep -v "^http://"` ; do if [ ! -f sources/$FILE ]; then echo $FILE; fi ; done; # +SOURCE[25]="$SRCDIR/sources/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2" +SRCURL[25]="http://download.go-oo.org/extern/b4cae0700aa1c2aef7eb7f345365e6f1-translate-toolkit-1.8.1.tar.bz2" SOURCE[26]="$SRCDIR/sources/63ddc5116488985e820075e65fbe6aa4-openssl-0.9.8o.tar.gz" SRCURL[26]="http://hg.services.openoffice.org/binaries/63ddc5116488985e820075e65fbe6aa4-openssl-0.9.8o.tar.gz" SOURCE[27]="$SRCDIR/sources/09357cc74975b01714e00c5899ea1881-pixman-0.12.0.tar.gz" SRCURL[27]="http://hg.services.openoffice.org/binaries/09357cc74975b01714e00c5899ea1881-pixman-0.12.0.tar.gz" SOURCE[28]="$SRCDIR/sources/0b49ede71c21c0599b0cc19b353a6cb3-README_apache-commons.txt" SRCURL[28]="http://hg.services.openoffice.org/binaries/0b49ede71c21c0599b0cc19b353a6cb3-README_apache-commons.txt" -SOURCE[29]="$SRCDIR/sources/68dd2e8253d9a7930e9fd50e2d7220d0-hunspell-1.2.9.tar.gz" -SRCURL[29]="http://hg.services.openoffice.org/binaries/68dd2e8253d9a7930e9fd50e2d7220d0-hunspell-1.2.9.tar.gz" +SOURCE[29]="$SRCDIR/sources/9ed97fce60a9a65852402248a6659492-hunspell-1.3.1.tar.gz" +SRCURL[29]="http://download.go-oo.org/src/9ed97fce60a9a65852402248a6659492-hunspell-1.3.1.tar.gz" SOURCE[30]="$SRCDIR/sources/128cfc86ed5953e57fe0f5ae98b62c2e-libtextcat-2.2.tar.gz" SRCURL[30]="http://hg.services.openoffice.org/binaries/128cfc86ed5953e57fe0f5ae98b62c2e-libtextcat-2.2.tar.gz" SOURCE[31]="$SRCDIR/sources/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip" @@ -305,16 +308,16 @@ SOURCE[39]="$SRCDIR/sources/2ae988b339daec234019a7066f96733e-commons-lang-2.3-sr SRCURL[39]="http://hg.services.openoffice.org/binaries/2ae988b339daec234019a7066f96733e-commons-lang-2.3-src.tar.gz" SOURCE[40]="$SRCDIR/sources/2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz" SRCURL[40]="http://hg.services.openoffice.org/binaries/2c9b0f83ed5890af02c0df1c1776f39b-commons-httpclient-3.1-src.tar.gz" -SOURCE[41]="$SRCDIR/sources/2f6ecca935948f7db92d925d88d0d078-icu4c-4_0_1-src.tgz" -SRCURL[41]="http://hg.services.openoffice.org/binaries/2f6ecca935948f7db92d925d88d0d078-icu4c-4_0_1-src.tgz" +SOURCE[41]="$SRCDIR/sources/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip" +SRCURL[41]="http://hg.services.openoffice.org/binaries/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip" SOURCE[42]="$SRCDIR/sources/ca4870d899fd7e943ffc310a5421ad4d-liberation-fonts-ttf-1.06.0.20100721.tar.gz" SRCURL[42]="http://hg.services.openoffice.org/binaries/ca4870d899fd7e943ffc310a5421ad4d-liberation-fonts-ttf-1.06.0.20100721.tar.gz" SOURCE[43]="$SRCDIR/sources/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip" SRCURL[43]="http://hg.services.openoffice.org/binaries/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip" SOURCE[44]="$SRCDIR/sources/35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip" SRCURL[44]="http://hg.services.openoffice.org/binaries/35efabc239af896dfb79be7ebdd6e6b9-gentiumbasic-fonts-1.10.zip" -SOURCE[45]="$SRCDIR/sources/377a60170e5185eb63d3ed2fae98e621-README_silgraphite-2.3.1.txt" -SRCURL[45]="http://hg.services.openoffice.org/binaries/377a60170e5185eb63d3ed2fae98e621-README_silgraphite-2.3.1.txt" +SOURCE[45]="$SRCDIR/sources/451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt" +SRCURL[45]="http://download.go-oo.org/src/451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.2.oxt" SOURCE[46]="$SRCDIR/sources/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip" SRCURL[46]="http://hg.services.openoffice.org/binaries/39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip" SOURCE[47]="$SRCDIR/sources/3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz" @@ -331,28 +334,28 @@ SOURCE[52]="$SRCDIR/sources/4ea70ea87b47e92d318d4e7f5b940f47-cairo-1.8.0.tar.gz" SRCURL[52]="http://hg.services.openoffice.org/binaries/4ea70ea87b47e92d318d4e7f5b940f47-cairo-1.8.0.tar.gz" SOURCE[53]="$SRCDIR/sources/599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz" SRCURL[53]="http://hg.services.openoffice.org/binaries/599dc4cc65a07ee868cf92a667a913d2-xpdf-3.02.tar.gz" -SOURCE[54]="$SRCDIR/sources/5aba06ede2daa9f2c11892fbd7bc3057-libserializer.zip" -SRCURL[54]="http://hg.services.openoffice.org/binaries/5aba06ede2daa9f2c11892fbd7bc3057-libserializer.zip" -SOURCE[55]="$SRCDIR/sources/67b42915c8432abf0a922438f00860a2-libxml.zip" -SRCURL[55]="http://hg.services.openoffice.org/binaries/67b42915c8432abf0a922438f00860a2-libxml.zip" +SOURCE[54]="$SRCDIR/sources/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip" +SRCURL[54]="http://hg.services.openoffice.org/binaries/f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip" +SOURCE[55]="$SRCDIR/sources/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip" +SRCURL[55]="http://hg.services.openoffice.org/binaries/ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip" SOURCE[56]="$SRCDIR/sources/7740a8ec23878a2f50120e1faa2730f2-libxml2-2.7.6.tar.gz" SRCURL[56]="http://hg.services.openoffice.org/binaries/7740a8ec23878a2f50120e1faa2730f2-libxml2-2.7.6.tar.gz" SOURCE[57]="$SRCDIR/sources/7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz" SRCURL[57]="http://hg.services.openoffice.org/binaries/7376930b0d3f3d77a685d94c4a3acda8-STLport-4.5-0119.tar.gz" -SOURCE[58]="$SRCDIR/sources/79600e696a98ff95c2eba976f7a8dfbb-liblayout.zip" -SRCURL[58]="http://hg.services.openoffice.org/binaries/79600e696a98ff95c2eba976f7a8dfbb-liblayout.zip" +SOURCE[58]="$SRCDIR/sources/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip" +SRCURL[58]="http://hg.services.openoffice.org/binaries/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip" SOURCE[59]="$SRCDIR/sources/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip" SRCURL[59]="http://hg.services.openoffice.org/binaries/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip" SOURCE[60]="$SRCDIR/sources/ecb2e37e45c9933e2a963cabe03670ab-curl-7.19.7.tar.gz" SRCURL[60]="http://hg.services.openoffice.org/binaries/ecb2e37e45c9933e2a963cabe03670ab-curl-7.19.7.tar.gz" SOURCE[61]="$SRCDIR/sources/8294d6c42e3553229af9934c5c0ed997-stax-api-1.0-2-sources.jar" SRCURL[61]="http://hg.services.openoffice.org/binaries/8294d6c42e3553229af9934c5c0ed997-stax-api-1.0-2-sources.jar" -SOURCE[62]="$SRCDIR/sources/8ea307d71d11140574bfb9fcc2487e33-libbase.zip" -SRCURL[62]="http://hg.services.openoffice.org/binaries/8ea307d71d11140574bfb9fcc2487e33-libbase.zip" +SOURCE[62]="$SRCDIR/sources/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip" +SRCURL[62]="http://hg.services.openoffice.org/binaries/eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip" SOURCE[63]="$SRCDIR/sources/bd30e9cf5523cdfc019b94f5e1d7fd19-cppunit-1.12.1.tar.gz" SRCURL[63]="http://hg.services.openoffice.org/binaries/bd30e9cf5523cdfc019b94f5e1d7fd19-cppunit-1.12.1.tar.gz" -SOURCE[64]="$SRCDIR/sources/a06a496d7a43cbdc35e69dbe678efadb-libloader.zip" -SRCURL[64]="http://hg.services.openoffice.org/binaries/a06a496d7a43cbdc35e69dbe678efadb-libloader.zip" +SOURCE[64]="$SRCDIR/sources/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip" +SRCURL[64]="http://hg.services.openoffice.org/binaries/97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip" SOURCE[65]="$SRCDIR/sources/a169ab152209200a7bad29a275cb0333-seamonkey-1.1.14.source.tar.gz" SRCURL[65]="http://hg.services.openoffice.org/binaries/a169ab152209200a7bad29a275cb0333-seamonkey-1.1.14.source.tar.gz" SOURCE[66]="$SRCDIR/sources/a4d9b30810a434a3ed39fc0003bbd637-LICENSE_stax-api-1.0-2-sources.html" @@ -363,26 +366,26 @@ SOURCE[68]="$SRCDIR/sources/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.z SRCURL[68]="http://hg.services.openoffice.org/binaries/ada24d37d8d638b3d8a9985e80bc2978-source-9.0.0.7-bj.zip" SOURCE[69]="$SRCDIR/sources/af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz" SRCURL[69]="http://hg.services.openoffice.org/binaries/af3c3acf618de6108d65fcdc92b492e1-commons-codec-1.3-src.tar.gz" -SOURCE[70]="$SRCDIR/sources/ba1015b59c112d44d7797b62fe7bee51-neon-0.29.3.tar.gz" -SRCURL[70]="http://hg.services.openoffice.org/binaries/ba1015b59c112d44d7797b62fe7bee51-neon-0.29.3.tar.gz" +SOURCE[70]="$SRCDIR/sources/ff369e69ef0f0143beb5626164e87ae2-neon-0.29.5.tar.gz" +SRCURL[70]="http://hg.services.openoffice.org/binaries/ff369e69ef0f0143beb5626164e87ae2-neon-0.29.5.tar.gz" SOURCE[71]="$SRCDIR/sources/bc702168a2af16869201dbe91e46ae48-LICENSE_Python-2.6.1" SRCURL[71]="http://hg.services.openoffice.org/binaries/bc702168a2af16869201dbe91e46ae48-LICENSE_Python-2.6.1" SOURCE[72]="$SRCDIR/sources/c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz" SRCURL[72]="http://hg.services.openoffice.org/binaries/c441926f3a552ed3e5b274b62e86af16-STLport-4.0.tar.gz" SOURCE[73]="$SRCDIR/sources/ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz" SRCURL[73]="http://hg.services.openoffice.org/binaries/ca66e26082cab8bb817185a116db809b-redland-1.0.8.tar.gz" -SOURCE[74]="$SRCDIR/sources/d0b5af6e408b8d2958f3d83b5244f5e8-hyphen-2.4.tar.gz" -SRCURL[74]="http://hg.services.openoffice.org/binaries/d0b5af6e408b8d2958f3d83b5244f5e8-hyphen-2.4.tar.gz" -SOURCE[75]="$SRCDIR/sources/d1a3205871c3c52e8a50c9f18510ae12-libformula.zip" -SRCURL[75]="http://hg.services.openoffice.org/binaries/d1a3205871c3c52e8a50c9f18510ae12-libformula.zip" -SOURCE[76]="$SRCDIR/sources/d35724900f6a4105550293686688bbb3-silgraphite-2.3.1.tar.gz" -SRCURL[76]="http://hg.services.openoffice.org/binaries/d35724900f6a4105550293686688bbb3-silgraphite-2.3.1.tar.gz" +SOURCE[74]="$SRCDIR/sources/48a9f787f43a09c0a9b7b00cd1fddbbf-hyphen-2.7.1.tar.gz" +SRCURL[74]="http://hg.services.openoffice.org/binaries/48a9f787f43a09c0a9b7b00cd1fddbbf-hyphen-2.7.1.tar.gz" +SOURCE[75]="$SRCDIR/sources/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip" +SRCURL[75]="http://hg.services.openoffice.org/binaries/3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip" +SOURCE[76]="$SRCDIR/sources/0625a7d661f899a8ce263fc8a9879108-graphite2-0.9.2.tgz" +SRCURL[76]="http://download.go-oo.org/src/0625a7d661f899a8ce263fc8a9879108-graphite2-0.9.2.tgz" SOURCE[77]="$SRCDIR/sources/d4c4d91ab3a8e52a2e69d48d34ef4df4-core.zip" SRCURL[77]="http://hg.services.openoffice.org/binaries/d4c4d91ab3a8e52a2e69d48d34ef4df4-core.zip" SOURCE[78]="$SRCDIR/sources/d70951c80dabecc2892c919ff5d07172-db-4.7.25.NC-custom.tar.gz" SRCURL[78]="http://hg.services.openoffice.org/binaries/d70951c80dabecc2892c919ff5d07172-db-4.7.25.NC-custom.tar.gz" -SOURCE[79]="$SRCDIR/sources/dbb3757275dc5cc80820c0b4dd24ed95-librepository.zip" -SRCURL[79]="http://hg.services.openoffice.org/binaries/dbb3757275dc5cc80820c0b4dd24ed95-librepository.zip" +SOURCE[79]="$SRCDIR/sources/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip" +SRCURL[79]="http://hg.services.openoffice.org/binaries/8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip" SOURCE[80]="$SRCDIR/sources/dbd5f3b47ed13132f04c685d608a7547-jpeg-6b.tar.gz" SRCURL[80]="http://hg.services.openoffice.org/binaries/dbd5f3b47ed13132f04c685d608a7547-jpeg-6b.tar.gz" SOURCE[81]="$SRCDIR/sources/e0707ff896045731ff99e99799606441-README_db-4.7.25.NC-custom.txt" @@ -397,16 +400,16 @@ SOURCE[85]="$SRCDIR/sources/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" SRCURL[85]="http://hg.services.openoffice.org/binaries/ea91f2fb4212a21d708aced277e6e85a-vigra1.4.0.tar.gz" SOURCE[86]="$SRCDIR/sources/ee8b492592568805593f81f8cdf2a04c-expat-2.0.1.tar.gz" SRCURL[86]="http://hg.services.openoffice.org/binaries/ee8b492592568805593f81f8cdf2a04c-expat-2.0.1.tar.gz" -SOURCE[87]="$SRCDIR/sources/f3e2febd267c8e4b13df00dac211dd6d-flute.zip" -SRCURL[87]="http://hg.services.openoffice.org/binaries/f3e2febd267c8e4b13df00dac211dd6d-flute.zip" -SOURCE[88]="$SRCDIR/sources/f7925ba8491fe570e5164d2c72791358-libfonts.zip" -SRCURL[88]="http://hg.services.openoffice.org/binaries/f7925ba8491fe570e5164d2c72791358-libfonts.zip" +SOURCE[87]="$SRCDIR/sources/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip" +SRCURL[87]="http://hg.services.openoffice.org/binaries/d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip" +SOURCE[88]="$SRCDIR/sources/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip" +SRCURL[88]="http://hg.services.openoffice.org/binaries/3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip" SOURCE[89]="$SRCDIR/sources/fb7ba5c2182be4e73748859967455455-README_stax-api-1.0-2-sources.txt" SRCURL[89]="http://hg.services.openoffice.org/binaries/fb7ba5c2182be4e73748859967455455-README_stax-api-1.0-2-sources.txt" SOURCE[90]="$SRCDIR/sources/fca8706f2c4619e2fa3f8f42f8fc1e9d-rasqal-0.9.16.tar.gz" SRCURL[90]="http://hg.services.openoffice.org/binaries/fca8706f2c4619e2fa3f8f42f8fc1e9d-rasqal-0.9.16.tar.gz" -SOURCE[91]="$SRCDIR/sources/fcc6df1160753d0b8c835d17fdeeb0a7-boost_1_39_0.tar.gz" -SRCURL[91]="http://hg.services.openoffice.org/binaries/fcc6df1160753d0b8c835d17fdeeb0a7-boost_1_39_0.tar.gz" +SOURCE[91]="$SRCDIR/sources/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2" +SRCURL[91]="http://download.go-oo.org/src/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2" SOURCE[92]="$SRCDIR/sources/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz" SRCURL[92]="http://hg.services.openoffice.org/binaries/fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz" SOURCE[93]="$SRCDIR/sources/37282537d0ed1a087b1c8f050dc812d9-dejavu-fonts-ttf-2.32.zip" @@ -415,36 +418,36 @@ SOURCE[94]="$SRCDIR/sources/831126a1ee5af269923cfab6050769fe-mysql-connector-cpp SRCURL[94]="http://hg.services.openoffice.org/binaries/831126a1ee5af269923cfab6050769fe-mysql-connector-cpp.zip" SOURCE[95]="$SRCDIR/sources/067201ea8b126597670b5eff72e1f66c-mythes-1.2.0.tar.gz" SRCURL[95]="http://hg.services.openoffice.org/binaries/067201ea8b126597670b5eff72e1f66c-mythes-1.2.0.tar.gz" -SOURCE[96]="$SRCDIR/sources/cf8a6967f7de535ae257fa411c98eb88-mdds_0.3.0.tar.bz2" -SRCURL[96]="http://hg.services.openoffice.org/binaries/cf8a6967f7de535ae257fa411c98eb88-mdds_0.3.0.tar.bz2" +SOURCE[96]="$SRCDIR/sources/7a0dcb3fe1e8c7229ab4fb868b7325e6-mdds_0.5.2.tar.bz2" +SRCURL[96]="http://download.go-oo.org/src/7a0dcb3fe1e8c7229ab4fb868b7325e6-mdds_0.5.2.tar.bz2" SOURCE[97]="$SRCDIR/sources/47e1edaa44269bc537ae8cabebb0f638-JLanguageTool-1.0.0.tar.bz2" SRCURL[97]="http://download.go-oo.org/src/47e1edaa44269bc537ae8cabebb0f638-JLanguageTool-1.0.0.tar.bz2" SOURCE[98]="$SRCDIR/sources/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2" SRCURL[98]="http://download.go-oo.org/src/90401bca927835b6fbae4a707ed187c8-nlpsolver-0.9.tar.bz2" SOURCE[99]="$SRCDIR/sources/debc62758716a169df9f62e6ab2bc634-zlib-1.2.3.tar.gz" SRCURL[99]="http://download.go-oo.org/src/debc62758716a169df9f62e6ab2bc634-zlib-1.2.3.tar.gz" -SOURCE[100]="$SRCDIR/sources/e3738abd0d3ce1870dc1fd1f22bba5b1-icu4c-4_2_1-src.tgz" -SRCURL[100]="http://download.go-oo.org/src/e3738abd0d3ce1870dc1fd1f22bba5b1-icu4c-4_2_1-src.tgz" +SOURCE[100]="$SRCDIR/sources/314e582264c36b3735466c522899aa07-icu4c-4_4_2-src.tgz" +SRCURL[100]="http://download.go-oo.org/src/314e582264c36b3735466c522899aa07-icu4c-4_4_2-src.tgz" SOURCE[101]="$SRCDIR/sources/0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz" SRCURL[101]="http://download.go-oo.org/src/0f63ee487fda8f21fafa767b3c447ac9-ixion-0.2.0.tar.gz" SOURCE[102]="$SRCDIR/sources/71474203939fafbe271e1263e61d083e-nss-3.12.8-with-nspr-4.8.6.tar.gz" SRCURL[102]="http://download.go-oo.org/src/71474203939fafbe271e1263e61d083e-nss-3.12.8-with-nspr-4.8.6.tar.gz" SOURCE[103]="$SRCDIR/sources/5ba6a61a2f66dfd5fee8cdd4cd262a37-libwpg-0.2.0.tar.bz2" SRCURL[103]="http://download.go-oo.org/src/5ba6a61a2f66dfd5fee8cdd4cd262a37-libwpg-0.2.0.tar.bz2" -SOURCE[104]="$SRCDIR/sources/5ff846847dab351604ad859e2fd4ed3c-libwpd-0.9.1.tar.bz2" -SRCURL[104]="http://download.go-oo.org/src/5ff846847dab351604ad859e2fd4ed3c-libwpd-0.9.1.tar.bz2" -SOURCE[105]="$SRCDIR/sources/9e436bff44c60dc8b97cba0c7fc11a5c-libwps-0.2.0.tar.bz2" -SRCURL[105]="http://download.go-oo.org/src/9e436bff44c60dc8b97cba0c7fc11a5c-libwps-0.2.0.tar.bz2" +SOURCE[104]="$SRCDIR/sources/8d265a592619166f29c4672ea54812b7-libwpd-0.9.2.tar.bz2" +SRCURL[104]="http://download.go-oo.org/src/8d265a592619166f29c4672ea54812b7-libwpd-0.9.2.tar.bz2" +SOURCE[105]="$SRCDIR/sources/83d4029aebf290c0a9a8fee9c99638d3-libwps-0.2.1.tar.bz2" +SRCURL[105]="http://download.go-oo.org/src/83d4029aebf290c0a9a8fee9c99638d3-libwps-0.2.1.tar.bz2" SOURCE[106]="$SRCDIR/sources/185d60944ea767075d27247c3162b3bc-unowinreg.dll" SRCURL[106]="http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll" SOURCE[107]="$SRCDIR/sources/881af2b7dca9b8259abbca00bbbc004d-LinLibertineG-20110101.zip" SRCURL[107]="http://www.numbertext.org/linux/881af2b7dca9b8259abbca00bbbc004d-LinLibertineG-20110101.zip" # Two files that are used to determine what needs to be downloaded: -SOURCE[108]="$SRCDIR/sources/ooo.lst-${VERSION}${SUBVER}" -SRCURL[108]="http://cgit.freedesktop.org/libreoffice/bootstrap/plain/ooo.lst?id=libreoffice-${VERSION}${SUBVER}" -SOURCE[109]="$SRCDIR/sources/fetch_tarballs.sh-${VERSION}${SUBVER}" -SRCURL[109]="http://cgit.freedesktop.org/libreoffice/bootstrap/plain/fetch_tarballs.sh?id=libreoffice-${VERSION}${SUBVER}" +SOURCE[108]="$SRCDIR/sources/ooo.lst.in-${VERSION}${SUBVER}" +SRCURL[108]="http://cgit.freedesktop.org/libreoffice/bootstrap/plain/ooo.lst.in?id=libreoffice-${VERSION}${SUBVER}" +SOURCE[109]="$SRCDIR/sources/download-${VERSION}${SUBVER}" +SRCURL[109]="http://cgit.freedesktop.org/libreoffice/bootstrap/plain/download?id=libreoffice-${VERSION}${SUBVER}" # Additional dictionaries I'd like to have installed: SOURCE[110]="$SRCDIR/sources/dict-en-US.oxt" @@ -460,6 +463,8 @@ SOURCE[114]="$SRCDIR/sources/dict-nl.oxt" SRCURL[114]="http://extensions.services.openoffice.org/e-files/1456/6/nl-dict-v2.00g.oxt" SOURCE[115]="$SRCDIR/sources/dict-it.oxt" SRCURL[115]="http://extensions.services.openoffice.org/e-files/1064/0/dict-it-IT_and_Latin_2010-08-23.oxt" +SOURCE[116]="$SRCDIR/sources/dict-de.oxt" +SRCURL[116]="http://extensions.services.openoffice.org/e-files/1075/8/dict-de_DE-frami_2010-12-04.oxt" # Use the src_checkout() function if no downloadable tarball exists. @@ -597,6 +602,16 @@ for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do fi done +# Maybe we need even more? +echo "** Please examine the following output (enclosed in '-+-+-+' lines)." +echo "** If you see any filenames there, it means that these are still missing." +echo "** Since they will not be downloaded when LibreOffice starts compiling," +echo "** you may run into problems later." +echo "** NOTE: this indicates that this SlackBuild needs to be updated." +echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" +for FILE in $(wget -q -O - "http://cgit.freedesktop.org/libreoffice/bootstrap/plain/ooo.lst.in?id=$PRGNAM-$VERSION" | grep -vE "^http://|^@") ; do if [ ! -f $SRCDIR/sources/$FILE ]; then echo $FILE; fi ; done; +echo "-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" + if [ "$P1" == "--download" ]; then echo "Download complete." exit 0 @@ -610,26 +625,30 @@ echo "++" cd $TMP/tmp-$PRGNAM if [ "$P1" != "--oldbuild" ]; then - echo "Extracting 'build' source archive(s) for $PRGNAM..." - tar -xvf ${SOURCE[0]} + echo "Extracting source archive(s) for $PRGNAM..." + for (( i = 0; i < 20; i++ )) ; do + echo -n " ." + tar -xf ${SOURCE[$i]} + done + echo "" + # Add all sources together for a bootstrap build: + mkdir build + for SUBDIR in libreoffice-*/* ; do mv $(pwd)/$SUBDIR build/ ; done + + echo "Copying all external archives into src directory for $PRGNAM..." + mkdir -p extsrc + for (( i = 20; i < ${#SOURCE[*]}; i++ )) ; do + ln -sf ${SOURCE[$i]} extsrc/ + done + #touch src.downloaded fi -cd ${PRGNAM}-build-${VERSION}${SUBVER} - -# Replace a "SlacwkareOnly" patch that fails to apply, thereby preventing -# all subsequent patching to be aborted: -cp $SRCDIR/scp2-user-config-ooo3.diff patches/dev300/ - -# Disable this diff to prevent error in 32-bit compilation of 'sw' -# ( undefined reference to `ixion::formula_lexer::swap_tokens ): -sed -i -e 's/^fields-table-formula.diff.*/#&/' patches/dev300/apply - -# Add a patch to make the presenter console compile: -cp $SRCDIR/libreoffice.presenter.diff patches/hotfixes/ - chown -R root:root . chmod -R u+w,go+r-w,a+X-s . +# Enter the build directory: +cd $TMP/tmp-$PRGNAM/build + echo Building ... if [ -z "$SRCURL[0]" ]; then @@ -663,10 +682,7 @@ export OOInstall="/usr/lib${LIBDIRSUFFIX}/libreoffice" export OODESTDIR="$PKG" # Substitute our Slackware-specific configuration: -cat $SRCDIR/Slackware.conf.in > distro-configs/Slackware.conf.in - -# Compensate for ill-named artwork file: -sed -i -e 's/^\(OOO_EXTRA_ARTWORK=.*\).tar.*/\1.tar.gz/' configure.in +cat $SRCDIR/Slackware.conf.in |sed -e "s#@JAVA_HOME@#$JAVA_HOME#" > distro-configs/Slackware.conf # If this local directory does not exist during configuration, # support for Open Clip Art will be disabled: @@ -690,12 +706,14 @@ enable_pam=no \ ./autogen.sh \ --with-arch-flags="$SLKCFLAGS" \ --with-build-version="SlackBuild for ${LOVER}$VERSION by Eric Hameleers" \ + --with-package-format="native archive installed tardist" \ --with-distro=Slackware \ --with-docdir=/usr/doc/$PRGNAM-${LOVER}$VERSION \ - --with-installed-ooo-dirname=$PRGNAM \ + --with-install-dirname=$PRGNAM \ --with-lang="$(echo ${LANGUAGES} |tr _ -)" \ --with-num-cpus=${NUMCPUS} \ --without-binsuffix \ + --with-external-tar="$TMP/tmp-$PRGNAM/extsrc" \ --docdir=/usr/doc/$PRGNAM-${LOVER}$VERSION \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ @@ -704,50 +722,58 @@ enable_pam=no \ ${KDEOPTS} \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log -if [ "$P1" != "--oldbuild" ]; then - mkdir -p src clone rawbuild build/${PRGNAM}-${LOVER%_}${VERSION}${SUBVER} - if [ "$USE_GIT" = "yes" ]; then - echo -n "Extracting additional component archive(s) for $PRGNAM" - for (( i = 1; i < 21; i++ )) ; do - echo -n " ." - tar -C clone -xf ${SOURCE[$i]} - done - echo - for PART in artwork base bootstrap calc components extras filters help \ - impress libs-gui libs-core libs-extern postprocess sdk testing \ - ure writer libs-extern-sys extensions l10n - do - mv clone/${PRGNAM}-${PART}-${VERSION}${SUBVER} clone/${PART} - done - else - echo "Extracting additional component archive(s) for $PRGNAM..." - for (( i = 1; i < 21; i++ )) ; do - cp -a ${SOURCE[$i]} src/ - done - fi - echo "Copying external sources into build directory for $PRGNAM..." - for (( i = 21; i < ${#SOURCE[*]}; i++ )) ; do - cp -a ${SOURCE[$i]} src/ - done -fi - -# The download script does more than downloading tarballs (which we already did) -# so let's run it: -echo "Starting 'download' script to check the prerequisites for $PRGNAM..." -./download \ - 2>&1 | tee $OUTPUT/download-${PRGNAM}.log +touch src.downloaded # Compile everything (takes many hours): +touch $OUTPUT/make-${PRGNAM}.log echo "Starting $PRGNAM compilation (takes a long time)..." -make -i VERBOSE=yes \ - 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log +./bootstrap 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log +make -i VERBOSE=yes 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log +# For good measure, run make again (fails in libtextcat): +( + cd $TMP/tmp-$PRGNAM/build/libtextcat/unxlngx6.pro/misc/build/libtextcat-2.2/src + echo -e "\n\n** RUNNING MAKE FOR LIBTEXTCAT - DIRTY HACK **\n\n" + make 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log +) +echo -e "\n\n** RUNNING MAKE A SECOND TIME FOR GOOD MEASURE **\n\n" +make -i VERBOSE=yes 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log # Install the lot: echo "Starting the packaging stage for $PRGNAM..." -( cd bin - ./package-ooo \ - 2>&1 | tee $OUTPUT/install-${PRGNAM}.log -) +make install DESTDIR=$PKG \ + 2>&1 | tee $OUTPUT/install-${PRGNAM}.log + +# Remove cruft: +rm -f $PKG/gid_Module* + +# Move the SDK files to sane locations: +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/sdk +mv $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/{docs,examples,index.html} \ + $PKG/usr/doc/$PRGNAM-$VERSION/sdk/ +ln -sf /usr/doc/$PRGNAM-$VERSION/sdk/docs \ + $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/ +ln -sf /usr/doc/$PRGNAM-$VERSION/sdk/index.html \ + $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/ +ln -sf /usr/doc/$PRGNAM-$VERSION/sdk/examples \ + $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/ + +mkdir -p $PKG/usr/share/${PRGNAM}/sdk +mv $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/classes \ + $PKG/usr/share/${PRGNAM}/sdk/ +ln -sf /usr/share/${PRGNAM}/sdk/classes \ + $(readlink -f $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk)/ + +mkdir -p $PKG/usr/share/idl +mv $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/idl \ + $PKG/usr/share/idl/${PRGNAM} +ln -sf /usr/share/idl/${PRGNAM} \ + $(readlink -f $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk)/idl + +mkdir -p $PKG/usr/include +mv $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk/include \ + $PKG/usr/include/${PRGNAM} +ln -sf /usr/include/${PRGNAM} \ + $(readlink -f $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/basis-link/sdk)/include # Link the browser plugin into the mozilla plugins directory if we built one: if [ -f $PKG/usr/lib${LIBDIRSUFFIX}/$PRGNAM/program/libnpsoplugin.so ]; then @@ -765,9 +791,6 @@ fi done ) -# Fix permissions of a license file: -chmod 0644 $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/LICENSE.odt - # If we have any dictionaries in the sources directory, now is the time to # copy them into the package: mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/share/extensions/install @@ -863,24 +886,122 @@ if [ ! -z "${ADD_LANGUAGES}" ]; then done fi # End of splitting out language packs +# Create desktop menu entries: +mkdir -p $PKG/usr/share/applications/ +# What about template.desktop ? +cd $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/share/xdg/ + for FILE in base calc impress writer math draw startcenter ; do + echo "StartupNotify=true" >> ${FILE}.desktop + install -m0644 ${FILE}.desktop \ + $PKG/usr/share/applications/${PRGNAM}-${FILE}.desktop + done +cd - +# Add an entry for the LibO extension manager which went missing: +cat <<EOF > $PKG/usr/share/applications/lo-extension-manager.desktop +[Desktop Entry] +Version=1.0 +Terminal=false +TryExec=unopkg +Exec=unopkg gui %U +Type=Application +StartupNotify=true +Categories=Office; +MimeType=application/vnd.openofficeorg.extension; +Name=LibreOffice Extension Manager +GenericName=Extension Manager +Comment=Add and organize the LibreOffice extensions. +EOF + # Add the new icons and tell the menu entries to use those instead of ooo-* : find $PKG/usr/share/icons -name "ooo-*" -exec rm -f {} \; || true -( cd $TMP/tmp-$PRGNAM/${PRGNAM}-build-${VERSION}${SUBVER}/build/${PRGNAM}-${LOVER%_}${VERSION}${SUBVER}/sysui/desktop +cd $TMP/tmp-$PRGNAM/build/sysui/desktop find icons/hicolor -path "*apps*" -name "*.png" | while read LINE do mkdir -p $PKG/usr/share/$(dirname $LINE) - install -m0644 $LINE $PKG/usr/share/$(dirname $LINE)/${PRGNAM}-$(basename $LINE) + install -m0644 $LINE \ + $PKG/usr/share/$(dirname $LINE)/${PRGNAM}-$(basename $LINE) done -) +cd - + +# May no longer be needed: sed -i -e "s/^Icon=ooo-/Icon=${PRGNAM}-/" $PKG/usr/share/applications/*.desktop +# Add a bash-completion script that was removed (?) after 3.3.2.2: +if [ ! -f $PKG/etc/bash_completion.d/${PRGNAM}.sh ]; then + mkdir -p $PKG/etc/bash_completion.d + install -m0755 $SRCDIR/bash_completion.sh \ + $PKG/etc/bash_completion.d/${PRGNAM}.sh +fi + +# Add scripts that call the real binaries: +mkdir -p $PKG/usr/bin +cat <<EOF > $PKG/usr/bin/${PRGNAM} +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice "\$@" +EOF +chmod 0755 $PKG/usr/bin/${PRGNAM} + +cat <<EOF > $PKG/usr/bin/loweb +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --web "\$@" +EOF +chmod 0755 $PKG/usr/bin/loweb + +cat <<EOF > $PKG/usr/bin/localc +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --calc "\$@" +EOF +chmod 0755 $PKG/usr/bin/localc + +cat <<EOF > $PKG/usr/bin/lobase +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --base "\$@"- +EOF +chmod 0755 $PKG/usr/bin/lobase + +cat <<EOF > $PKG/usr/bin/lofromtemplate +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice .uno:NewDoc "\$@" +EOF +chmod 0755 $PKG/usr/bin/lofromtemplate + +cat <<EOF > $PKG/usr/bin/lowriter +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --writer "\$@" +EOF +chmod 0755 $PKG/usr/bin/lowriter + +cat <<EOF > $PKG/usr/bin/unopkg +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/unopkg "\$@" +EOF +chmod 0755 $PKG/usr/bin/unopkg + +cat <<EOF > $PKG/usr/bin/lodraw +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --draw "\$@" +EOF +chmod 0755 $PKG/usr/bin/lodraw + +cat <<EOF > $PKG/usr/bin/lomath +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --math "\$@" +EOF +chmod 0755 $PKG/usr/bin/lomath + +cat <<EOF > $PKG/usr/bin/loimpress +#!/bin/sh +/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/program/soffice --impress "\$@" +EOF +chmod 0755 $PKG/usr/bin/loimpress + # Fix the call to the program name in desktop entries (3.3.0.3 needs this): if [ ! -f $PKG/usr/bin/oowriter ]; then sed -i -e "s/Exec=oo/Exec=lo/g" $PKG/usr/share/applications/*.desktop fi # Back to base: -cd $TMP/tmp-$PRGNAM/${PRGNAM}-build-${VERSION}${SUBVER} +cd $TMP/tmp-$PRGNAM # Create the package's post-install script: mkdir -p $PKG/install @@ -919,6 +1040,13 @@ cp $SRCDIR/*.patch $SRCDIR/*.diff $PKG/usr/doc/$PRGNAM-${LOVER}$VERSION/patches/ chown -R root:root $PKG/usr/doc/$PRGNAM-${LOVER}$VERSION find $PKG/usr/doc -type f -exec chmod 644 {} \; +# Fix permissions of license files: +chmod 0644 $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM}/*.odt + +# Fix weird permissions: +find ${PKG} -perm 444 -exec chmod 644 {} \; +find ${PKG} -perm 555 -exec chmod 755 {} \; + # Compress the man page(s): if [ -d $PKG/usr/man ]; then find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; |