#!/bin/bash # Written by Manfred Mueller # # Copyright (c) 2013 Manfred Mueller, Muelheim, Germany # # Permission to use, copy, modify, and distribute this software for # any purpose with or without fee is hereby granted, provided that # the above copyright notice and this permission notice appear in all # copies. # # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF # USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT # OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # ----------------------------------------------------------------------------- . /usr/share/slax/slaxbuildlib SLAX_BUNDLE_NAME="gnumeric" SLAX_BUNDLE_VERSION="1.10.14" SLAX_BUNDLE_DESCRIPTION="A GNOME spreadsheet application Gnumeric is a spreadsheet program. It has the ability to import and export data in several file formats, including CSV, Microsoft Excel, Microsoft Works spreadsheets (.wks), HTML, LaTeX, Lotus 1-2-3, OpenDocument and Quattro Pro; its native format is the Gnumeric file format (.gnm or .gnumeric), an XML file compressed with gzip." SLAX_BUNDLE_CATEGORIES="editors" SLAX_BUNDLES_REQUIRED="libgsf, goffice" SLAX_BUNDLES_REQUIRED_TO_COMPILE_ONLY="perl, intltool, gettext-tools, expat, pcre" SLAX_BUNDLE_MAINTAINER_NAME="Manfred Mueller" SLAX_BUNDLE_MAINTAINER_EMAIL="manfred.mueller@fluxflux.net" SLAX_BUNDLE_SOURCE_DOWNLOAD[0]="http://ftp.gnome.org/pub/GNOME/sources/gnumeric/1.10/${SLAX_BUNDLE_NAME}-${SLAX_BUNDLE_VERSION}.tar.bz2" SLAX_BUNDLE_SOURCE_DOWNLOAD[1]="" SLAX_BUNDLE_SOURCE_DOWNLOAD[2]="" check_variables_for_errors download_all_sources extract_all_sources init_bundle_target_dir activate_required_bundles cd ./${SLAX_BUNDLE_NAME}-${SLAX_BUNDLE_VERSION} sed -i -e 's/Icon=.*/Icon=kspread/' gnumeric.desktop.in # sed -i -e 's/Categories=.*/Categories=Utility;/' gnumeric.desktop.in sed -i 's/doc tools schemas test/tools schemas/' Makefile.{am,in} CFLAGS="${SLAX_CFLAGS}" CXXFLAGS="${SLAX_CFLAGS}" \ ./configure ${SLAX_CONFIGURE_OPTIONS} \ --disable-schemas-install \ --without-python \ --without-perl \ --without-gnome \ --without-psiconv \ --without-paradox \ --without-gda \ --disable-solver make -j 8 || make || exit 1 make install DESTDIR="${SLAX_BUNDLE_TARGET}" mkdir -p "${SLAX_BUNDLE_TARGET}"/run cat << EOS >> "${SLAX_BUNDLE_TARGET}"/run/activate.sh #!/bin/sh if [ "\$(grep -A2 " Office" /root/.config/menus/applications-kmenuedit.menu | grep files)" = "" ]; then sed -i "\$((\$(grep -n " Office" /root/.config/menus/applications-kmenuedit.menu | cut -d: -f1) + 1))s|.*| \n |" /root/.config/menus/applications-kmenuedit.menu fi sleep 2 kbuildsycoca4 EOS strip_unneeded_objects create_slax_bundle