summaryrefslogtreecommitdiff
path: root/extra/libreoffice/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libreoffice/PKGBUILD')
-rw-r--r--extra/libreoffice/PKGBUILD117
1 files changed, 64 insertions, 53 deletions
diff --git a/extra/libreoffice/PKGBUILD b/extra/libreoffice/PKGBUILD
index 05012b954..83a13bab8 100644
--- a/extra/libreoffice/PKGBUILD
+++ b/extra/libreoffice/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 165429 2012-08-19 07:58:11Z andyrtr $
+# $Id: PKGBUILD 166171 2012-09-05 06:03:48Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
pkgbase="libreoffice"
@@ -21,22 +21,22 @@ pkgname=('libreoffice-common'
'libreoffice-extension-scripting-python'
'libreoffice-extension-wiki-publisher'
'libreoffice-extension-nlpsolver') # svn up -r 142692 (last one with all extensions built
-_LOver=3.5.6.2
-pkgver=3.5.6
-pkgrel=1
+_LOver=3.6.1.2
+pkgver=3.6.1
+pkgrel=4
arch=('i686' 'x86_64')
license=('LGPL3')
url="http://www.libreoffice.org/"
makedepends=( # makedepends
- 'sane' 'perl-archive-zip' 'zip' 'unzip' 'unixodbc' 'hsqldb-java' # 'boost'
- 'apache-ant' 'gperf' 'poppler>=0.20.3' 'kdelibs' 'gconf' 'cppunit'
- 'beanshell' 'vigra' 'lucene' 'junit' 'libmythes' 'libwpg' 'imagemagick'
- 'mesa' 'gstreamer0.10-base' 'java-environment' 'postgresql-libs'
+ 'sane' 'perl-archive-zip' 'zip' 'unzip' 'unixodbc' 'hsqldb-java' #'boost'
+ 'apache-ant' 'gperf' 'poppler>=0.18.0' 'kdelibs' 'gconf' 'cppunit'
+ 'beanshell' 'vigra' 'clucene' 'junit' 'libmythes' 'libwpg' 'imagemagick'
+ 'mesa' 'gstreamer0.10-base' 'java-environment' 'postgresql-libs' 'doxygen' 'clucene'
#'saxon' - currently broken
# the runtime dependencies
"curl>=7.20.0" "hunspell>=1.2.8" "python2>=2.7" 'libwpd>=0.9.2' 'libwps' 'libxaw' "neon>=0.28.6"
'pango' 'nspr' 'libjpeg' 'libxrandr' 'libgl' 'dbus-glib' 'libxslt' 'librsvg' "icu>=49.1"
- 'redland' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'libtextcat' 'graphite'
+ 'redland' 'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'libtextcat' 'graphite' 'lcms2'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'gtk2' 'orbit2' 'translate-toolkit' 'xdg-utils'
'ttf-dejavu') # to satisfy regression tests
@@ -48,6 +48,7 @@ makedepends=( # makedepends
_mirror="http://download.documentfoundation.org/libreoffice/src/${pkgver}"
#_mirror="http://dev-builds.libreoffice.org/pre-releases/src"
_additional_source_url="http://dev-www.libreoffice.org/src"
+_additional_source_url2="http://dev-www.libreoffice.org/extern"
source=(${_mirror}/${pkgbase}-{core,help,translations}-${_LOver}.tar.xz
${_additional_source_url}/18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
${_additional_source_url}/f02578f5218f217a9f20e9c30e119c6a-boost_1_44_0.tar.bz2
@@ -75,12 +76,12 @@ source=(${_mirror}/${pkgbase}-{core,help,translations}-${_LOver}.tar.xz
${_additional_source_url}/db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
${_additional_source_url}/ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
${_additional_source_url}/0ff7d225d087793c8c2c680d77aac3e7-mdds_0.5.3.tar.bz2
- ${_additional_source_url}/e1c178b18f130b40494561f02bc1a948-libexttextcat-3.2.0.tar.bz2
- ${_additional_source_url}/7c2549f6b0a8bb604e6c4c729ffdcfe6-libcmis-0.1.0.tar.gz
- http://download.go-oo.org/extern/185d60944ea767075d27247c3162b3bc-unowinreg.dll
- gmake_install.diff::http://cgit.freedesktop.org/libreoffice/core/patch/?id=1048d8fa4abd3e55a45dfb6884db808da1d72c9e
- smp_buildfix.diff::http://cgit.freedesktop.org/libreoffice/core/patch/?id=cf23f57ae6bb7af689a45e0a850c3c2f67a8f810
- fix_broken_hebrew_wordwrapping.diff
+ ${_additional_source_url}/6097739c841f671cb21332b9cc593ae7-libexttextcat-3.3.1.tar.bz2
+ ${_additional_source_url}/0d2dcdfbf28d6208751b33057f5361f0-libcmis-0.2.3.tar.gz
+ ${_additional_source_url}/ce5a1def34578b75959ac31210f031f6-libcdr-0.0.8.tar.bz2
+ ${_additional_source_url2}/185d60944ea767075d27247c3162b3bc-unowinreg.dll
+ buildfix.diff
+ git_fixes.diff
libreoffice-common.sh libreoffice-common.csh)
noextract=(94e7f271e38c976462558b4278590178-libvisio-0.0.19.tar.bz2
18f577b374d60b3c760a3a3350407632-STLport-4.5.tar.gz
@@ -91,8 +92,8 @@ noextract=(94e7f271e38c976462558b4278590178-libvisio-0.0.19.tar.bz2
798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
fdb27bfe2dbe2e7b57ae194d9bf36bab-SampleICC-1.3.2.tar.gz
- e1c178b18f130b40494561f02bc1a948-libexttextcat-3.2.0.tar.bz2
- 7c2549f6b0a8bb604e6c4c729ffdcfe6-libcmis-0.1.0.tar.gz
+ 6097739c841f671cb21332b9cc593ae7-libexttextcat-3.3.1.tar.bz2
+ 0d2dcdfbf28d6208751b33057f5361f0-libcmis-0.2.3.tar.gz
35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
2a177023f9ea8ec8bd00837605c5df1b-jakarta-tomcat-5.0.30-src.tar.gz
a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
@@ -110,10 +111,11 @@ noextract=(94e7f271e38c976462558b4278590178-libvisio-0.0.19.tar.bz2
3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
+ ce5a1def34578b75959ac31210f031f6-libcdr-0.0.8.tar.bz2
ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip)
-md5sums=('f8bfdb449dd6748d99b1f23a5702e5a1'
- 'ecf485e13adfe8d5d4428b68787d390f'
- '41696d482cb90db0acb6c45acd9047ea'
+md5sums=('3ddcf145b74daa4361e48dafe97e7d21'
+ '7966e66099729d23d9ee594f526a50ed'
+ '2555590c1b4395857fc5c469f7f1bd0c'
'18f577b374d60b3c760a3a3350407632'
'f02578f5218f217a9f20e9c30e119c6a'
'94e7f271e38c976462558b4278590178'
@@ -140,14 +142,14 @@ md5sums=('f8bfdb449dd6748d99b1f23a5702e5a1'
'db60e4fde8dd6d6807523deb71ee34dc'
'ba2930200c9f019c2d93a8c88c651a0f'
'0ff7d225d087793c8c2c680d77aac3e7'
- 'e1c178b18f130b40494561f02bc1a948'
- '7c2549f6b0a8bb604e6c4c729ffdcfe6'
+ '6097739c841f671cb21332b9cc593ae7'
+ '0d2dcdfbf28d6208751b33057f5361f0'
+ 'ce5a1def34578b75959ac31210f031f6'
'185d60944ea767075d27247c3162b3bc'
- '60ce5dc9bd098f95c2e621a930c98dd9'
- '661a52a02a31b3afbe4b3b3146061afd'
- '025d9b17d9eb90dc282c5c1289a666aa'
- 'f0e72d0e1bc93a50a3aa9d31350b156c'
- '867c682b45f477f916786e00c45d7ab7')
+ '234e91ac65945ce1ab1e3839780e90f7'
+ '2445aca137bdbf0cf7526e91f768a1d0'
+ 'abcb1b0a7deaffe13ab3d7ca70becb49'
+ '72790a4103da259a55cadd66db931d00')
build() {
@@ -173,19 +175,11 @@ build() {
ln -s ../libreoffice-translations-$_LOver/translations .
# buildfixes & bugfixes
- # one late fix to solve make distro-pack-install issue
- patch -Np1 -i ${srcdir}/gmake_install.diff
- patch -Np1 -i ${srcdir}/smp_buildfix.diff
- # https://bugs.archlinux.org/task/29854 based on 3.6/master patch http://cgit.freedesktop.org/libreoffice/core/patch/?id=20c24114143d6d38774b56a142fd4ae05094308e
- patch -Np1 -i ${srcdir}/fix_broken_hebrew_wordwrapping.diff
+ patch -Np1 -i ${srcdir}/buildfix.diff
+ patch -Np1 -i ${srcdir}/git_fixes.diff
+
# Checks if --hash-style is accepted, not if --hash-style=both is accepted.
[ "${CARCH}" = "mips64el" ] && sed -i 's/--hash-style=both/--hash-style=sysv/' ${srcdir}/build/solenv/gbuild/platform/unxgcc.mk
-
- # unset C(XX)FLAGS
- # http://www.openoffice.org/issues/show_bug.cgi?id=103205
-# unset CFLAGS
-# unset CXXFLAGS
-
#use the CFLAGS but remove the LibO overridden ones
for i in $CFLAGS; do
case "$i" in
@@ -197,12 +191,19 @@ build() {
# python2 fix
export PYTHON=python2
-# autoconf -f
+ #autoconf -f
# non-SMP test build
+<<<<<<< HEAD
# export MAKEFLAGS="-j1"
# touch autogen.lastrun
./autogen.sh --with-build-version="${_LOver} Parabola GNU/Linux-libre build-${pkgrel}" --with-vendor="Parabola GNU/Linux-libre" \
+=======
+ #export MAKEFLAGS="-j1"
+ #./configure --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
+
+ ./autogen.sh --with-build-version="${_LOver} ArchLinux build-${pkgrel}" --with-vendor="ArchLinux" \
+>>>>>>> 2a4c41bf2946fad65b14cf1b4ea284ebce0f11f3
--with-unix-wrapper="libreoffice" \
--enable-split-app-modules \
--with-max-jobs=${MAKEFLAGS/-j/} --with-num-cpus=${MAKEFLAGS/-j/} \
@@ -235,12 +236,14 @@ build() {
--without-afms\
--without-ppds\
--without-system-libwps\
+ --without-system-libcdr \
--without-system-mdds\
--without-myspell-dicts \
--without-system-libvisio \
--without-system-libcmis \
- --without-system-sampleicc \
--without-system-libexttextcat \
+ --without-system-jfreereport \
+ --without-system-apache-commons \
--with-system-dicts \
--with-external-dict-dir=/usr/share/hunspell \
--with-external-hyph-dir=/usr/share/hyphen \
@@ -254,7 +257,7 @@ build() {
--disable-mozilla \
--without-system-mozilla \
--without-system-mozilla-headers \
- --with-ant-home="/usr/share/java/apache-ant"\
+ --with-ant-home="/usr/share/apache-ant"\
--without-system-boost\
--with-system-cairo\
--with-system-libs\
@@ -262,9 +265,8 @@ build() {
--with-system-headers\
--with-system-hsqldb \
--with-alloc=system\
- --with-system-lucene\
- --with-lucene-core-jar=/usr/share/java/lucene-core.jar\
- --with-lucene-analyzers-jar=/usr/share/java/lucene-analyzers.jar\
+ --with-system-clucene\
+ --without-system-servlet-api \
--with-java-target-version=1.5 \
$extraconf
$EXTRAOPTS
@@ -289,7 +291,7 @@ package_libreoffice-common() {
pkgdesc="common files for LibreOffice - a productivity suite that is compatible with other major office suites"
install=libreoffice-common.install
depends=('libreoffice-langpack' "hunspell>=1.2.8" "python2>=2.7" "neon>=0.28.6"
- 'nspr' 'libsm' 'redland' 'hyphen' 'graphite' "icu>=49.1"
+ 'nspr' 'libsm' 'redland' 'hyphen' 'graphite' "icu>=49.1" 'clucene' 'lcms2'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'xdg-utils' 'orbit2')
#'saxon'
[ "${CARCH}" != "mips64el" ] && depends+=('libgl')
@@ -304,14 +306,18 @@ package_libreoffice-common() {
'vigra: C++ computer vision library, usable in Basebmp'
'libmspack: library for Microsoft compression formats for use in FontOOo'
'libwpg: library for importing and converting Corel WordPerfect(tm) Graphics images'
- 'lucene: full-text search engine library for Java needed in the help section'
'sane: for scanner access'
'unixodbc: adds ODBC database support'
+<<<<<<< HEAD
'gstreamer0.10-base: + some gstr-plugins to support multimedia content, e.g. in impress')
[ "${CARCH}" != "mips64el" ] && optdepends+=('java-runtime: adds java support' \
'hsqldb-java: default database format for OpenOffice.org' \
'beanshell: interactive java -- good for prototyping /macros' \
'lucene: full-text search engine library for Java needed in the help section')
+=======
+ 'gstreamer0.10-base: + some gstr-plugins to support multimedia content, e.g. in impress'
+ 'gtk2: for browser plugin')
+>>>>>>> 2a4c41bf2946fad65b14cf1b4ea284ebce0f11f3
backup=(etc/libreoffice/sofficerc
etc/libreoffice/bootstraprc
etc/libreoffice/psprint.conf)
@@ -351,6 +357,11 @@ package_libreoffice-common() {
install -dm755 ${pkgdir}/usr/share/bash-completion/completions
mv ${pkgdir}/etc/bash_completion.d/libreoffice.sh ${pkgdir}/usr/share/bash-completion/completions/libreoffice.sh
rm -rf ${pkgdir}/etc/bash_completion.d
+
+ # some files would conflict
+ rm -f ${pkgdir}/usr/lib/libreoffice/program/classes/ScriptProviderForJavaScript.jar
+ rm -f ${pkgdir}/usr/lib/libreoffice/program/classes/js.jar
+ rm -f ${pkgdir}/usr/lib/libreoffice/program/services/scriptproviderforjavascript.rdb
}
package_libreoffice-base() {
@@ -391,16 +402,16 @@ package_libreoffice-postgresql-connector() {
install -dm755 ${pkgdir}/usr/lib/libreoffice/share/registry
install -m644 ${srcdir}/fakeinstall/usr/lib/libreoffice/share/registry/postgresqlsdbc.xcd ${pkgdir}/usr/lib/libreoffice/share/registry
-# # create directories from *list.txt file
+ # create directories from *list.txt file
# for directory in `grep ^%dir ${srcdir}/libreoffice-core-$_LOver/file-lists/postgresql_list.txt`; do
# install -dm755 ${pkgdir}/${directory/\%dir/}
# done
-# # install files into the pkg from fakeinstall dir
+ # install files into the pkg from fakeinstall dir
# for file in `grep -v ^%dir $srcdir/libreoffice-core-$_LOver/file-lists/postgresql_list.txt`; do
# dirname=`dirname $file`
-# # check if directory has been already been created - some are missing like manpages
+ # check if directory has been already been created - some are missing like manpages
# [ -d ${pkgdir}/$dirname ] || install -dm755 ${pkgdir}/$dirname
-# # mv file from fakeinstall to pkgdir
+ # mv file from fakeinstall to pkgdir
# mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
# done
}
@@ -638,7 +649,7 @@ package_libreoffice-extension-pdfimport() {
groups=('libreoffice-extensions')
install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
- unzip -q ${srcdir}/libreoffice-core-$_LOver/solver/unxlng*/bin/pdfimport/pdfimport.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/pdfimport
+ unzip -q ${srcdir}/libreoffice-core-$_LOver/solver/unxlng*/bin/pdfimport.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/pdfimport
}
package_libreoffice-extension-presenter-screen() {
@@ -690,8 +701,8 @@ package_libreoffice-scripting-javascript() {
groups=('libreoffice-extensions')
install -dm755 ${pkgdir}/usr/lib/libreoffice/program/{classes,services}
- mv ${srcdir}/fakeinstall/usr/lib/libreoffice/program/classes/{js.jar,ScriptProviderForJavaScript.jar} ${pkgdir}/usr/lib/libreoffice/program/classes/
- mv ${srcdir}/fakeinstall/usr/lib/libreoffice/program/services/scriptproviderforjavascript.rdb ${pkgdir}/usr/lib/libreoffice/program/services/
+ mv ${srcdir}/libreoffice-core-$_LOver/solver/unxlng*/bin/{js.jar,ScriptProviderForJavaScript.jar} ${pkgdir}/usr/lib/libreoffice/program/classes/
+ mv ${srcdir}/libreoffice-core-$_LOver/solver/unxlng*/xml/scriptproviderforjavascript.rdb ${pkgdir}/usr/lib/libreoffice/program/services/
}
package_libreoffice-extension-scripting-python() {