mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/libreoffice-fresh to 6.3.2-1
This commit is contained in:
parent
48eedb976c
commit
2345e74b20
1 changed files with 37 additions and 37 deletions
|
@ -18,8 +18,8 @@ _google_default_client_secret=0ZChLK6AxeA3Isu96MkwqDR4
|
|||
|
||||
pkgbase=libreoffice-fresh
|
||||
pkgname=('libreoffice-fresh-sdk' 'libreoffice-fresh')
|
||||
_LOver=6.3.1.2
|
||||
pkgver=6.3.1
|
||||
_LOver=6.3.2.2
|
||||
pkgver=6.3.2
|
||||
pkgrel=1
|
||||
arch=('x86_64')
|
||||
license=('LGPL3')
|
||||
|
@ -80,11 +80,11 @@ noextract=(35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
|
|||
185d60944ea767075d27247c3162b3bc-unowinreg.dll
|
||||
)
|
||||
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>
|
||||
sha256sums=('78c7c9a4d2203daeb1d3a6e7e8a522492b5d89fd374903558876dc3300bcc251'
|
||||
sha256sums=('407da27b18f10e8beda6a9c7137273098ddfd59503e502d99e239ff7fb07bd75'
|
||||
'SKIP'
|
||||
'c61cfe66488e768a40565139ada3cdbd2d91d9b5931fcf09738823ca05ac7980'
|
||||
'128653fca87641343011b4f83c6c7367f79b0d3f299b76ca9c00aa670a8ea7aa'
|
||||
'SKIP'
|
||||
'090ccea6d46695e5a2435196835103173eb75a6a57539b686d5aac092f6c088c'
|
||||
'2d77f71de0f46e1698904cb9238b579a1bfce19c0ae0f165fc9fb695b9ec5973'
|
||||
'SKIP'
|
||||
'64585ac36a81291a58269ec5347e7e3e2e8596dbacb9221015c208191333c6e1'
|
||||
'1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753'
|
||||
|
@ -110,19 +110,19 @@ prepare() {
|
|||
cd libreoffice-$_LOver
|
||||
|
||||
# move external sources into place
|
||||
mkdir ${srcdir}/ext_sources && pushd ${srcdir}/ext_sources
|
||||
mkdir "${srcdir}"/ext_sources && pushd "${srcdir}"/ext_sources
|
||||
for source in "${noextract[@]}"; do
|
||||
ln -s ${srcdir}/$source .
|
||||
ln -s "${srcdir}"/$source .
|
||||
done
|
||||
popd
|
||||
|
||||
# unowinreg.dll must be a file not a symlink or the result will become a broken symlink
|
||||
# /usr/share/libreoffice/sdk/classes/win/unowinreg.dll -> /build/libreoffice/src/185d60944ea767075d27247c3162b3bc-unowinreg.dll
|
||||
rm ${srcdir}/ext_sources/185d60944ea767075d27247c3162b3bc-unowinreg.dll
|
||||
cp -f ${srcdir}/185d60944ea767075d27247c3162b3bc-unowinreg.dll ${srcdir}/ext_sources
|
||||
rm "${srcdir}"/ext_sources/185d60944ea767075d27247c3162b3bc-unowinreg.dll
|
||||
cp -f "${srcdir}"/185d60944ea767075d27247c3162b3bc-unowinreg.dll "${srcdir}"/ext_sources
|
||||
|
||||
# fix not upstreamable pyuno paths - FS#54250
|
||||
patch -Np1 -i ${srcdir}/make-pyuno-work-with-system-wide-module-install.diff
|
||||
patch -Np1 -i "${srcdir}"/make-pyuno-work-with-system-wide-module-install.diff
|
||||
|
||||
#use the CFLAGS but remove the LibO overridden ones
|
||||
for i in $CFLAGS; do
|
||||
|
@ -226,12 +226,12 @@ build() {
|
|||
touch src.downloaded
|
||||
make build-nocheck
|
||||
|
||||
mkdir ${srcdir}/fakeinstall
|
||||
make DESTDIR=${srcdir}/fakeinstall distro-pack-install
|
||||
mkdir "${srcdir}"/fakeinstall
|
||||
make DESTDIR="${srcdir}"/fakeinstall distro-pack-install
|
||||
}
|
||||
|
||||
#check() {
|
||||
# cd ${srcdir}/build
|
||||
# cd "${srcdir}"/build
|
||||
# make check
|
||||
#}
|
||||
|
||||
|
@ -242,25 +242,25 @@ package_libreoffice-fresh-sdk() {
|
|||
conflicts=('libreoffice-still-sdk')
|
||||
|
||||
for dir in $(grep -h ^%dir libreoffice-$_LOver/file-lists/sdk{,_doc}_list.txt); do
|
||||
install -dm755 ${pkgdir}/${dir/\%dir/}
|
||||
install -dm755 "${pkgdir}"/${dir/\%dir/}
|
||||
done
|
||||
|
||||
for file in $(grep -h -v ^%dir libreoffice-$_LOver/file-lists/sdk{,_doc}_list.txt); do
|
||||
dirname=$(dirname $file)
|
||||
[[ -d ${pkgdir}/$dirname ]] || install -dm755 ${pkgdir}/$dirname
|
||||
mv ${srcdir}/fakeinstall/${file} ${pkgdir}/$file
|
||||
[[ -d "${pkgdir}"/$dirname ]] || install -dm755 "${pkgdir}"/$dirname
|
||||
mv "${srcdir}"/fakeinstall/${file} "${pkgdir}"/$file
|
||||
done
|
||||
|
||||
# fix environment path to keep compatibility with other java-environments
|
||||
sed -i -e "s:\/usr\/lib\/jvm\/java-7-openjdk:\$J2SDKDIR:" \
|
||||
${pkgdir}/usr/lib/libreoffice/sdk/setsdkenv_unix.sh
|
||||
"${pkgdir}"/usr/lib/libreoffice/sdk/setsdkenv_unix.sh
|
||||
|
||||
# fix permissions
|
||||
find ${pkgdir}/usr/lib/libreoffice/sdk/examples -type f -exec chmod -x {} +
|
||||
find "${pkgdir}"/usr/lib/libreoffice/sdk/examples -type f -exec chmod -x {} +
|
||||
|
||||
# add LibreOfficeKit headers; FS#48066
|
||||
install -dm755 ${pkgdir}/usr/include/LibreOfficeKit
|
||||
install -v -m644 ${srcdir}/libreoffice-$_LOver/include/LibreOfficeKit/* ${pkgdir}/usr/include/LibreOfficeKit
|
||||
install -dm755 "${pkgdir}"/usr/include/LibreOfficeKit
|
||||
install -v -m644 "${srcdir}"/libreoffice-$_LOver/include/LibreOfficeKit/* "${pkgdir}"/usr/include/LibreOfficeKit
|
||||
}
|
||||
|
||||
package_libreoffice-fresh() {
|
||||
|
@ -302,39 +302,39 @@ package_libreoffice-fresh() {
|
|||
mv fakeinstall/* ${pkgdir}/
|
||||
|
||||
# put configuration files into place
|
||||
install -dm755 ${pkgdir}/etc/libreoffice
|
||||
install -m644 ${pkgdir}/usr/lib/libreoffice/program/{bootstraprc,sofficerc} \
|
||||
${pkgdir}/etc/libreoffice/
|
||||
install -m644 ${pkgdir}/usr/lib/libreoffice/share/psprint/psprint.conf \
|
||||
${pkgdir}/etc/libreoffice/
|
||||
install -dm755 "${pkgdir}"/etc/libreoffice
|
||||
install -m644 "${pkgdir}"/usr/lib/libreoffice/program/{bootstraprc,sofficerc} \
|
||||
"${pkgdir}"/etc/libreoffice/
|
||||
install -m644 "${pkgdir}"/usr/lib/libreoffice/share/psprint/psprint.conf \
|
||||
"${pkgdir}"/etc/libreoffice/
|
||||
|
||||
# install dummy links to make them found by LibO
|
||||
cd ${pkgdir}/usr/lib/libreoffice/program/
|
||||
cd "${pkgdir}"/usr/lib/libreoffice/program/
|
||||
ln -vsf /etc/libreoffice/{bootstraprc,sofficerc} .
|
||||
cd ${pkgdir}/usr/lib/libreoffice/share/psprint/
|
||||
cd "${pkgdir}"/usr/lib/libreoffice/share/psprint/
|
||||
ln -vsf /etc/libreoffice/psprint.conf .
|
||||
|
||||
# allow to preset desired VLC
|
||||
install -dm755 ${pkgdir}/etc/profile.d
|
||||
install -m644 ${srcdir}/libreoffice-fresh.{sh,csh} ${pkgdir}/etc/profile.d/
|
||||
install -dm755 "${pkgdir}"/etc/profile.d
|
||||
install -m644 "${srcdir}"/libreoffice-fresh.{sh,csh} "${pkgdir}"/etc/profile.d/
|
||||
|
||||
# make pyuno find its modules
|
||||
install -dm755 ${pkgdir}/usr/lib/python3.7/site-packages
|
||||
install -dm755 "${pkgdir}"/usr/lib/python3.7/site-packages
|
||||
ln -svf /usr/lib/libreoffice/program/uno.py \
|
||||
${pkgdir}/usr/lib/python3.7/site-packages/uno.py
|
||||
"${pkgdir}"/usr/lib/python3.7/site-packages/uno.py
|
||||
ln -svf /usr/lib/libreoffice/program/unohelper.py \
|
||||
${pkgdir}/usr/lib/python3.7/site-packages/unohelper.py
|
||||
"${pkgdir}"/usr/lib/python3.7/site-packages/unohelper.py
|
||||
|
||||
# add a symlink required for gnome-documents; FS#51887
|
||||
# https://lists.freedesktop.org/archives/libreoffice/2016-March/073787.html
|
||||
ln -svf /usr/lib/libreoffice/program/liblibreofficekitgtk.so \
|
||||
${pkgdir}/usr/lib/liblibreofficekitgtk.so
|
||||
"${pkgdir}"/usr/lib/liblibreofficekitgtk.so
|
||||
|
||||
# cleanup
|
||||
rm -rf ${pkgdir}/usr/share/libreoffice/sdk
|
||||
rm -rf "${pkgdir}"/usr/share/libreoffice/sdk
|
||||
|
||||
# add application descriptions
|
||||
install -dm755 ${pkgdir}/usr/share/metainfo
|
||||
install -v -m644 ${srcdir}/libreoffice-$_LOver/sysui/desktop/appstream-appdata/*.xml \
|
||||
${pkgdir}/usr/share/metainfo
|
||||
install -dm755 "${pkgdir}"/usr/share/metainfo
|
||||
install -v -m644 "${srcdir}"/libreoffice-$_LOver/sysui/desktop/appstream-appdata/*.xml \
|
||||
"${pkgdir}"/usr/share/metainfo
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue