From b158ec2de5167e1a4e09fa8203474b93da574832 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 4 Feb 2013 17:18:07 +0100 Subject: [PATCH] New package: libreoffice-bin-4.0.0.3 (via pancake). --- srcpkgs/libreoffice-bin/template | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 srcpkgs/libreoffice-bin/template diff --git a/srcpkgs/libreoffice-bin/template b/srcpkgs/libreoffice-bin/template new file mode 100644 index 00000000000..52164c7b42d --- /dev/null +++ b/srcpkgs/libreoffice-bin/template @@ -0,0 +1,54 @@ +# Template file for 'libreoffice-bin' +pkgname=libreoffice-bin +version=4.0.0.3 +revision=1 +maintainer="pancake " +homepage="http://www.libreoffice.org/" +license="LGPL-3" +short_desc="Productivity suite compatible with other major office suites (binary build)" + +if [ "${XBPS_MACHINE}" = "x86_64" ]; then + _arch=x86-64 + distfiles="http://download.documentfoundation.org/libreoffice/testing/${version%.*}/deb/x86_64/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz" + checksum=e787adb0dc420a9c4ba2314109e706e5d90ab1d2c8371ebc100f280925346d96 +elif [ "${XBPS_MACHINE}" = "i686" ]; then + _arch=x86 + distfiles="http://download.documentfoundation.org/libreoffice/testing/${version%.*}/deb/x86/LibreOffice_${version}_Linux_${_arch}_deb.tar.gz" + checksum=91f1d4cc30ac6e6f25d5933a175f1fa648283a4d9dc564f831d942c0eb9baf19 +fi +only_for_archs="i686 x86_64" +wrksrc="LibreOffice_${version}_Linux_${_arch}_deb" +disable_debug=yes + +do_install() { + cd DEBS + mkdir -p ${DESTDIR} + for a in *.deb ; do + ar x $a + tar xzpvf data.tar.gz -C ${DESTDIR} + done + # hack the missing shlibs! + p=/opt/libreoffice4.0/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 + " + 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 + for a in ${programs} ; do + ln -fs ${p}/program/$a ${DESTDIR}/usr/bin/$a + done +}