# Template file for 'libreoffice-bin' pkgname=libreoffice-bin version=4.0.0.3 revision=2 maintainer="pancake " homepage="http://www.libreoffice.org/" license="LGPL-3" short_desc="Productivity suite compatible with other major office suites (binary build)" if [ "$XBPS_TARGET_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_TARGET_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}/$a ${DESTDIR}/usr/bin/$a done } libreoffice-bin_package() { pkg_install() { vmove usr } }