From 30313ec6e0bc3fca73713c666152a88cbaa4f64a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 19 Dec 2013 07:00:10 +0100 Subject: [PATCH] libreoffice-bin: update to 4.1.4. --- srcpkgs/libreoffice-bin/REMOVE | 5 +++++ srcpkgs/libreoffice-bin/template | 33 ++++++++------------------------ 2 files changed, 13 insertions(+), 25 deletions(-) create mode 100644 srcpkgs/libreoffice-bin/REMOVE diff --git a/srcpkgs/libreoffice-bin/REMOVE b/srcpkgs/libreoffice-bin/REMOVE new file mode 100644 index 00000000000..ec54513678a --- /dev/null +++ b/srcpkgs/libreoffice-bin/REMOVE @@ -0,0 +1,5 @@ +case "${ACTION}" in +post) + rm -f opt/libreoffice4.1/ure-link + ;; +esac diff --git a/srcpkgs/libreoffice-bin/template b/srcpkgs/libreoffice-bin/template index 213744cadfb..907e9bbe140 100644 --- a/srcpkgs/libreoffice-bin/template +++ b/srcpkgs/libreoffice-bin/template @@ -1,6 +1,6 @@ # Template file for 'libreoffice-bin' pkgname=libreoffice-bin -version=4.1.1 +version=4.1.4 revision=1 maintainer="pancake " homepage="http://www.libreoffice.org/" @@ -11,15 +11,15 @@ _disturi="http://download.documentfoundation.org/libreoffice/stable/${version}/d if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then _arch=x86-64 distfiles="${_disturi}/x86_64/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz" - checksum=9accb8f6a3be10b2a60911282f8fb5414c12a411f9737d5850e327e4a77914ec + checksum=199f0c572c1a4a77705b3518b3e659194870904bc54903c42b361677f80f4997 elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then _arch=x86 distfiles="${_disturi}/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz" - checksum=2dd305f8907ee4f21b631fa028e037fe35b82d6728798104f9b6734cec8f472e + checksum=05fc65f52aeca01c9d38a6155943029e7e6b8ad5216765f255a8ad466033a36d fi only_for_archs="i686 x86_64" wrksrc="LibreOffice_${version}.2_Linux_${_arch}_deb" -makedepends="libpng-devel" +makedepends="shared-mime-info desktop-file-utils hicolor-icon-theme" do_install() { cd DEBS @@ -28,34 +28,17 @@ do_install() { ar x $a tar xzpvf data.tar.gz -C ${DESTDIR} done - # hack the missing shlibs! - p=/opt/libreoffice4.1/program/ - d=${DESTDIR}/$p - rm -f ${d}/libpng12.so.0 - ln -fs /usr/lib/libpng.so ${d}/libpng12.so.0 - cd ${d} - hack_shlibs=" - libjawt.so - libkdeui.so.4 - libkdecore.so.4 - libqt-mt.so.3 - libkabc.so.1 - libkio.so.4 - libgnomevfs-2.so.0 - libsqlite3.so - " - for a in ${hack_shlibs} ; do - ln -fs ./libpng12.so.0 ./${a} - done # install symlinked programs to /usr programs="soffice scalc swriter simpress sdraw sbase" - mkdir -p ${DESTDIR}/usr/bin + vmkdir usr/bin for a in ${programs} ; do - ln -fs ${p}/$a ${DESTDIR}/usr/bin/$a + ln -fs /opt/libreoffice4.1/program/$a ${DESTDIR}/usr/bin/$a done } libreoffice-bin_package() { + depends="${makedepends}" + allow_unknown_shlibs=yes pkg_install() { vmove all }