extra/libreoffice-still to 4.2.6-3

This commit is contained in:
Kevin Mihelich 2014-08-21 12:42:19 +00:00
parent f78fb0c61f
commit 0cafb06e73

View file

@ -1,31 +1,31 @@
# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix building icu
buildarch=20
pkgbase="libreoffice"
pkgname=('libreoffice-common'
'libreoffice-base'
'libreoffice-calc'
'libreoffice-draw'
'libreoffice-gnome'
'libreoffice-impress'
'libreoffice-kde4'
'libreoffice-math'
'libreoffice-sdk'
'libreoffice-sdk-doc'
'libreoffice-writer'
'libreoffice-en-US'
'libreoffice-postgresql-connector'
'libreoffice-extension-wiki-publisher'
'libreoffice-extension-nlpsolver') # svn up -r 142692 (last one with all extensions built)
_LOver=4.2.5.2
pkgver=4.2.5
pkgrel=1
pkgbase="libreoffice-still"
pkgname=('libreoffice-still-common'
'libreoffice-still-base'
'libreoffice-still-calc'
'libreoffice-still-draw'
'libreoffice-still-gnome'
'libreoffice-still-impress'
'libreoffice-still-kde4'
'libreoffice-still-math'
'libreoffice-still-sdk'
'libreoffice-still-sdk-doc'
'libreoffice-still-writer'
'libreoffice-still-en-US'
'libreoffice-still-postgresql-connector'
'libreoffice-still-extension-wiki-publisher'
'libreoffice-still-extension-nlpsolver')
_LOver=4.2.6.2
pkgver=4.2.6
pkgrel=3
arch=('i686' 'x86_64')
license=('LGPL3')
url="http://www.libreoffice.org/"
@ -39,16 +39,12 @@ makedepends=( # makedepends
"curl>=7.20.0" "hunspell>=1.2.8" "python>=3.4"
'libxaw' "neon>=0.28.6" 'pango' 'nspr' 'libjpeg' 'libxrandr'
'libgl' 'dbus-glib' 'libxslt' 'librsvg' 'redland' 'icu'
'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'graphite'
'hyphen' 'lpsolve' 'gcc-libs' 'sh' 'graphite'
'lcms2' 'poppler>=0.24.0'
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info'
'gtk2' 'orbit2' 'translate-toolkit' 'xdg-utils' #'telepathy-glib'
'gtk2' 'orbit2' 'translate-toolkit' 'xdg-utils'
'gst-plugins-base-libs' 'glu' 'ttf-liberation' # to satisfy regression tests
'git')
# there's only one single static library in libreoffice-sdk,
# the next build that removes it may lead to trouble if people may use it
# -rw-r--r-- 1 root root 5,1K 12. Okt 23:34 /usr/lib/libreoffice/sdk/lib/libsalcpprt.a
# options=('staticlibs')
# http://download.documentfoundation.org/mirrors/all.html
# http://wiki.documentfoundation.org/Mirrors
@ -57,7 +53,7 @@ _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}{,-help,-translations}-${_LOver}.tar.xz{,.asc}
source=(${_mirror}/libreoffice{,-help,-translations}-${_LOver}.tar.xz{,.asc}
${_additional_source_url}/15cb8c0803064faef0c4ddf5bc5ca279-boost_1_54_0.tar.bz2
${_additional_source_url}/1f24ab1d39f4a51faf22244c94a6203f-xmlsec1-1.2.14.tar.gz
${_additional_source_url}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
@ -100,7 +96,7 @@ source=(${_mirror}/${pkgbase}{,-help,-translations}-${_LOver}.tar.xz{,.asc}
${_additional_source_url}/libabw-0.0.2.tar.bz2
${_additional_source_url}/language-subtag-registry-2014-03-27.tar.bz2
make-pyuno-work-with-system-wide-module-install.diff
libreoffice-common.sh libreoffice-common.csh
libreoffice-still-common.sh libreoffice-still-common.csh
icudata-stdlibs.patch)
noextract=(15cb8c0803064faef0c4ddf5bc5ca279-boost_1_54_0.tar.bz2
185d60944ea767075d27247c3162b3bc-unowinreg.dll
@ -143,11 +139,11 @@ noextract=(15cb8c0803064faef0c4ddf5bc5ca279-boost_1_54_0.tar.bz2
libe-book-0.0.3.tar.bz2
libabw-0.0.2.tar.bz2
language-subtag-registry-2014-03-27.tar.bz2)
md5sums=('eb44cc33bb9331db4c1b6ae0b03fff9f'
md5sums=('2a26fc7bf8bac8d48a3d66cc414341c0'
'SKIP'
'867c10167b05ba19162b78032405524b'
'7de859449c547c2eb0cb0b0e11236a4a'
'SKIP'
'6bcd61a3f977f78c64b1eaa13a40524c'
'2cb44cb6bb2b94d14700aa80f2d65dea'
'SKIP'
'15cb8c0803064faef0c4ddf5bc5ca279'
'1f24ab1d39f4a51faf22244c94a6203f'
@ -214,10 +210,10 @@ prepare() {
# fix not upstreamable pyuno paths - patch taken from Debian
patch -Np1 -i ${srcdir}/make-pyuno-work-with-system-wide-module-install.diff
# fix icu building on ARM
patch -Np1 -i ${srcdir}/icudata-stdlibs.patch
#use the CFLAGS but remove the LibO overridden ones
for i in $CFLAGS; do
case "$i" in
@ -306,6 +302,7 @@ build() {
--without-system-libwps \
--with-system-redland\
--without-system-npapi-headers \
--with-jdk-home="/usr/lib/jvm/java-default-runtime" \
--with-ant-home="/usr/share/apache-ant"\
--without-system-boost\
--with-system-icu \
@ -319,11 +316,6 @@ build() {
--disable-dependency-tracking \
--enable-hardlink-deliver #--help
# --enable-mergelibs=<all/yes> \ # https://bugs.archlinux.org/task/34414
# --without-ppds\ # breaks spadmin permission
#--enable-split-opt-features Split file lists for some optional features, .e.g. pyuno, testtool
touch src.downloaded
#./download
make build
@ -337,15 +329,15 @@ build() {
# make check
#}
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" "python>=3.3" "neon>=0.28.6"
package_libreoffice-still-common() {
pkgdesc="Common files for LibreOffice maintenance branch"
install=libreoffice-still-common.install
depends=('libreoffice-still-langpack' "hunspell>=1.2.8" "python>=3.3" "neon>=0.28.6"
'dbus-glib' 'librsvg' 'libcups' 'nss' 'libsm' 'redland' 'hyphen'
'graphite' 'clucene' 'lcms2' "poppler>=0.24.0" 'icu'
'harfbuzz-icu' 'hicolor-icon-theme' 'glu'
'desktop-file-utils' 'shared-mime-info' 'xdg-utils')
optdepends=('libreoffice-langpack: additional language support'
optdepends=('libreoffice-still-langpack: additional language support'
'java-runtime: adds java support'
'pstoedit: translates PostScript and PDF graphics into other vector formats'
'libmythes: for use in thesaurus'
@ -360,16 +352,16 @@ package_libreoffice-common() {
backup=(etc/libreoffice/sofficerc
etc/libreoffice/bootstraprc
etc/libreoffice/psprint.conf
etc/profile.d/libreoffice-common.sh
etc/profile.d/libreoffice-common.csh)
groups=('libreoffice')
provides=('go-openoffice' 'libreoffice-extension-pdfimport' 'libreoffice-extension-presenter-screen'
'libreoffice-scripting-beanshell' 'libreoffice-scripting-javascript' 'libreoffice-extension-scripting-python'
'libreoffice-extension-report-builder')
conflicts=('go-openoffice')
replaces=('go-openoffice' 'openoffice-base' 'libreoffice' 'libreoffice-extension-pdfimport' 'libreoffice-extension-presenter-screen'
etc/profile.d/libreoffice-still-common.sh
etc/profile.d/libreoffice-still-common.csh)
groups=('libreoffice-still')
provides=('libreoffice-common' 'libreoffice-still-extension-pdfimport' 'libreoffice-still-extension-presenter-screen'
'libreoffice-still-scripting-beanshell' 'libreoffice-still-scripting-javascript' 'libreoffice-still-extension-scripting-python'
'libreoffice-still-extension-report-builder')
replaces=('libreoffice' 'libreoffice-common' 'libreoffice-extension-pdfimport' 'libreoffice-extension-presenter-screen'
'libreoffice-scripting-beanshell' 'libreoffice-scripting-javascript' 'libreoffice-extension-scripting-python'
'libreoffice-extension-report-builder' 'libreoffice-extension-presentation-minimizer' 'libreoffice-extension-presentation-minimizer')
conflicts=('libreoffice-common' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/common_list.txt`; do
@ -396,7 +388,7 @@ package_libreoffice-common() {
# allow to preset desired VLC
install -dm755 ${pkgdir}/etc/profile.d
install -m755 ${srcdir}/libreoffice-common.{sh,csh} ${pkgdir}/etc/profile.d/
install -m755 ${srcdir}/libreoffice-still-common.{sh,csh} ${pkgdir}/etc/profile.d/
# move bash-completion files to its new place
install -dm755 ${pkgdir}/usr/share/bash-completion/completions
@ -410,9 +402,6 @@ package_libreoffice-common() {
# workaround all packages now depend on that file
cp ${srcdir}/fakeinstall/usr/lib/libreoffice/share/registry/writer.xcd ${pkgdir}/usr/lib/libreoffice/share/registry/writer.xcd
# workaround lowriter depending on a lib that's part of calc
# https://bugs.archlinux.org/task/39038 - https://bugs.freedesktop.org/show_bug.cgi?id=75506
# cp ${srcdir}/fakeinstall/usr/lib/libreoffice/program/libtubeslo.so ${pkgdir}/usr/lib/libreoffice/program/libtubeslo.so
# add missing files from Beanshell provider
# create directories from *list.txt file
@ -429,13 +418,15 @@ package_libreoffice-common() {
done
}
package_libreoffice-base() {
pkgdesc="GUI database front-end for LibreOffice. Allows creation and management of databases through a GUI."
install=libreoffice-base.install
depends=('libreoffice-common')
optdepends=('libreoffice-postgresql-connector')
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-base() {
pkgdesc="GUI database front-end for LibreOffice maintenance branch. Allows creation and management of databases through a GUI."
install=libreoffice-still-base.install
depends=('libreoffice-still-common')
optdepends=('libreoffice-still-postgresql-connector')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-base')
provides=('libreoffice-base')
conflicts=('libreoffice-base' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/base_list.txt`; do
@ -451,11 +442,13 @@ package_libreoffice-base() {
done
}
package_libreoffice-postgresql-connector() {
pkgdesc="A PostgreSQL connector for the database front-end for LibreOffice"
depends=('libreoffice-base' 'postgresql-libs')
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-postgresql-connector() {
pkgdesc="A PostgreSQL connector for the database front-end for LibreOffice maintenance branch"
depends=('libreoffice-still-base' 'postgresql-libs')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-postgresql-connector')
provides=('libreoffice-postgresql-connector')
conflicts=('libreoffice-postgresql-connector' 'libreoffice-fresh')
# workaround double entries in the file list
mv ${srcdir}/libreoffice-$_LOver/file-lists/postgresql_list.txt ${srcdir}/libreoffice-$_LOver/file-lists/postgresql_list.txt.orig
@ -475,13 +468,13 @@ package_libreoffice-postgresql-connector() {
done
}
package_libreoffice-calc() {
pkgdesc="Spreadsheet application for LibreOffice."
install=libreoffice-calc.install
depends=('libreoffice-common' 'lpsolve')
#depends=('libreoffice-writer' 'lpsolve' ) # some hidden uno linking to parts of the writer pkg - https://bugs.archlinux.org/task/34332
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-calc() {
pkgdesc="Spreadsheet application for LibreOffice maintenance branch"
install=libreoffice-still-calc.install
depends=('libreoffice-still-common' 'lpsolve')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-calc')
conflicts=('libreoffice-calc' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/calc_list.txt`; do
@ -495,17 +488,16 @@ package_libreoffice-calc() {
# mv file from fakeinstall to pkgdir
mv ${srcdir}/fakeinstall${file} ${pkgdir}$file
done
# workaround lowriter depending on a lib that's part of calc
# https://bugs.archlinux.org/task/39038 - https://bugs.freedesktop.org/show_bug.cgi?id=75506
# rm -vf ${pkgdir}/usr/lib/libreoffice/program/libtubeslo.so
}
package_libreoffice-draw() {
pkgdesc="Drawing Application for LibreOffice."
install=libreoffice-draw.install
depends=('libreoffice-common')
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-draw() {
pkgdesc="Drawing Application for LibreOffice maintenance branch"
install=libreoffice-still-draw.install
depends=('libreoffice-still-common')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-draw')
provides=('libreoffice-draw')
conflicts=('libreoffice-draw' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/draw_list.txt`; do
@ -521,12 +513,15 @@ package_libreoffice-draw() {
done
}
package_libreoffice-gnome() {
pkgdesc="Plug-in for LibreOffice that enables integration into the Gnome and other gtk desktop environment."
depends=('libreoffice-common' 'gconf')
package_libreoffice-still-gnome() {
pkgdesc="Plug-in for LibreOffice maintenance branch that enables integration into the Gnome and other gtk desktop environment."
depends=('libreoffice-still-common' 'gconf')
optdepends=('gtk3: for gtk3 Gnome integration'
'gtk2: for older gtk2 desktop integration')
groups=('libreoffice')
groups=('libreoffice-still')
replaces=('libreoffice-gnome')
provides=('libreoffice-gnome')
conflicts=('libreoffice-gnome' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/gnome_list.txt`; do
@ -542,12 +537,15 @@ package_libreoffice-gnome() {
done
}
package_libreoffice-impress() {
pkgdesc="Presentation Application for LibreOffice."
install=libreoffice-impress.install
depends=('libreoffice-common')
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-impress() {
pkgdesc="Presentation Application for LibreOffice maintenance branch"
install=libreoffice-still-impress.install
depends=('libreoffice-still-common')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-impress')
provides=('libreoffice-impress')
conflicts=('libreoffice-impress' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/impress_list.txt`; do
@ -563,12 +561,15 @@ package_libreoffice-impress() {
done
}
package_libreoffice-kde4() {
pkgdesc="Plug-in for LibreOffice that enables integration into the KDE4 desktop environment."
depends=('libreoffice-common' 'kdelibs')
package_libreoffice-still-kde4() {
pkgdesc="Plug-in for LibreOffice maintenance branch that enables integration into the KDE4 desktop environment."
depends=('libreoffice-still-common' 'kdelibs')
optdepends=()
backup=()
groups=('libreoffice')
groups=('libreoffice-still')
replaces=('libreoffice-kde4')
provides=('libreoffice-kde4')
conflicts=('libreoffice-kde4' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/kde4_list.txt`; do
@ -598,11 +599,13 @@ package_libreoffice-kde4() {
done
}
package_libreoffice-math() {
pkgdesc="Equation Editor Application for LibreOffice."
depends=('libreoffice-common')
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-math() {
pkgdesc="Equation Editor Application for LibreOffice maintenance branch."
depends=('libreoffice-still-common')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-math')
provides=('libreoffice-math')
conflicts=('libreoffice-math' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/math_list.txt`; do
@ -618,10 +621,13 @@ package_libreoffice-math() {
done
}
package_libreoffice-sdk() {
pkgdesc="Software Development Kit for LibreOffice."
depends=('libreoffice-common' 'gcc-libs' 'sh' 'make' 'zip' 'gcc' 'java-environment')
groups=('libreoffice')
package_libreoffice-still-sdk() {
pkgdesc="Software Development Kit for LibreOffice maintenance branch."
depends=('libreoffice-still-common' 'gcc-libs' 'sh' 'make' 'zip' 'gcc' 'java-environment')
groups=('libreoffice-still')
replaces=('libreoffice-sdk')
provides=('libreoffice-sdk')
conflicts=('libreoffice-sdk' 'libreoffice-fresh-sdk')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/sdk_list.txt`; do
@ -641,10 +647,13 @@ package_libreoffice-sdk() {
sed -i -e "s:\/usr\/lib\/jvm\/java-7-openjdk:\$J2SDKDIR:" ${pkgdir}/usr/lib/libreoffice/sdk/setsdkenv_unix.sh
}
package_libreoffice-sdk-doc() {
pkgdesc="Software Development Kit documentation for LibreOffice"
depends=('libreoffice-common' 'libreoffice-sdk')
groups=('libreoffice')
package_libreoffice-still-sdk-doc() {
pkgdesc="Software Development Kit documentation for LibreOffice maintenance branch"
depends=('libreoffice-still-common' 'libreoffice-still-sdk')
groups=('libreoffice-still')
replaces=('libreoffice-sdk-doc')
provides=('libreoffice-sdk-doc')
conflicts=('libreoffice-sdk-doc' 'libreoffice-fresh-sdk')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/sdk_doc_list.txt`; do
@ -663,12 +672,14 @@ package_libreoffice-sdk-doc() {
find ${pkgdir}/usr/lib/libreoffice/sdk/examples -type f -exec chmod -x {} \;
}
package_libreoffice-writer() {
pkgdesc="Word Processor Application for LibreOffice."
install=libreoffice-writer.install
depends=('libreoffice-common' 'libxml2')
groups=('libreoffice')
replaces=('libreoffice')
package_libreoffice-still-writer() {
pkgdesc="Word Processor Application for LibreOffice maintenance branch."
install=libreoffice-still-writer.install
depends=('libreoffice-still-common' 'libxml2')
groups=('libreoffice-still')
replaces=('libreoffice' 'libreoffice-writer')
provides=('libreoffice-writer')
conflicts=('libreoffice-writer' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/writer_list.txt`; do
@ -687,11 +698,11 @@ package_libreoffice-writer() {
rm -vf ${pkgdir}/usr/lib/libreoffice/share/registry/writer.xcd
}
package_libreoffice-en-US() {
pkgdesc="English (US) language pack for LibreOffice"
provides=('openoffice-en-US' 'libreoffice-langpack')
replaces=(openoffice-en-US)
conflicts=(openoffice-en-US)
package_libreoffice-still-en-US() {
pkgdesc="English (US) language pack for LibreOffice maintenance branch"
replaces=('libreoffice-en-US')
provides=('libreoffice-still-langpack' 'libreoffice-en-US')
conflicts=('libreoffice-en-US' 'libreoffice-fresh')
# create directories from *list.txt file
for directory in `grep ^%dir ${srcdir}/libreoffice-$_LOver/file-lists/lang_en_US_list.txt`; do
@ -707,21 +718,27 @@ package_libreoffice-en-US() {
done
}
package_libreoffice-extension-wiki-publisher() {
package_libreoffice-still-extension-wiki-publisher() {
pkgdesc="This extension enables you to create Wiki articles on MediaWiki servers without having to know the syntax of the MediaWiki markup language"
depends=('libreoffice-common' 'java-environment')
groups=('libreoffice-extensions')
depends=('libreoffice-still-common' 'java-environment')
groups=('libreoffice-still-extensions')
replaces=('libreoffice-extension-wiki-publisher')
provides=('libreoffice-extension-wiki-publisher')
conflicts=('libreoffice-extension-wiki-publisher' 'libreoffice-fresh')
install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
unzip -q ${srcdir}/libreoffice-$_LOver/workdir/Extension/wiki-publisher.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/wiki-publisher
}
package_libreoffice-extension-nlpsolver() {
package_libreoffice-still-extension-nlpsolver() {
pkgdesc="This extension integrates into Calc and offers new Solver engines to use for optimizing nonlinear programming models"
depends=('libreoffice-common' 'java-environment')
groups=('libreoffice-extensions')
depends=('libreoffice-still-common' 'java-environment')
groups=('libreoffice-still-extensions')
replaces=('libreoffice-extension-nlpsolver')
provides=('libreoffice-extension-nlpsolver')
conflicts=('libreoffice-extension-nlpsolver' 'libreoffice-fresh')
install -dm755 ${pkgdir}/usr/lib/libreoffice/share/extensions
unzip -q ${srcdir}/libreoffice-$_LOver/workdir/Extension/nlpsolver.oxt -d ${pkgdir}/usr/lib/libreoffice/share/extensions/nlpsolver