# Description: Suite pour le bureau libre # URL: http://www.libreoffice.org # Maintainer: cgit.freedesktop.org/libreoffice/core # Packager: thierryn1 at hispeed dot ch # Depends on: cups, curl, gperf, gtk, gtk3, p5-archive-zip, p5-xml-parser, boost, expat, gst-plugins-base, libgsf, librsvg, libxml2, libxslt, neon, nss, poppler, libpostgresql, redland, icu, hunspell, gsfonts, dejavu-ttf # Run on: cups,curl,gperf,gtk,gtk3,expat,gst-plugins-base,libgsf,librsvg,libxslt,neon,nss,poppler,libpostgresql,redland,icu,hunspell name=libreoffice version=3.5.2.2 release=1 source=(http://download.documentfoundation.org/libreoffice/src/3.5.2/$name-core-$version.tar.xz http://download.documentfoundation.org/libreoffice/src/3.5.2/$name-dictionaries-$version.tar.xz http://download.documentfoundation.org/libreoffice/src/3.5.2/$name-help-$version.tar.xz http://download.documentfoundation.org/libreoffice/src/3.5.2/$name-translations-$version.tar.xz ) build() { rm -r $name-translations-$version rm -r $name-help-$version rm -r $name-dictionaries-$version cd $name-core-$version tar -xf $PKGMK_SOURCE_DIR/$name-translations-$version.tar.xz --strip-components=1 tar -xf $PKGMK_SOURCE_DIR/$name-help-$version.tar.xz --strip-components=1 tar -xf $PKGMK_SOURCE_DIR/$name-dictionaries-$version.tar.xz --strip-components=1 sed -i '/$Prepend/s:^[^#]:# &:' \ i18npool/source/breakiterator/data/char{,_in}.txt ./autogen.sh --prefix=/usr \ --disable-binfilter \ --disable-gconf \ --disable-mozilla \ --disable-odk \ --with-system-boost \ --with-system-cairo \ --with-system-curl \ --with-system-db \ --with-system-expat \ --with-system-hunspell \ --with-system-icu \ --with-system-jpeg \ --with-system-libpng \ --with-system-libxml \ --with-system-neon \ --with-system-nss \ --with-system-openssl \ --with-system-poppler \ --with-system-postgresql \ --with-system-redland \ --with-system-zlib \ --with-num-cpus=$(getconf _NPROCESSORS_ONLN) \ --with-lang="fr" \ --without-java ./download mkdir -p ../libre-office-downloads cp -rf src/* ../libre-office-downloads make make DESTDIR=$PKG install # Nettoyages des fichiers inutiles mkdir -p $SRC/tmp mv $PKG/* $SRC/tmp mv $SRC/tmp/usr $PKG/ # Lanceurs mkdir -p $PKG/usr/bin for program in base calc draw impress math writer do echo '#!/bin/bash' > $PKG/usr/bin/${program} done for program in base calc draw impress math writer do echo "exec /usr/lib/libreoffice/program/soffice --nologo --${program} \"\${@}\"" >> $PKG/usr/bin/${program} chmod 755 $PKG/usr/bin/${program} done # Icones for res in 16 32 48 128 256 do mkdir -p $PKG/usr/share/icons/hicolor/${res}x${res}/{apps,mimetypes} cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \ $PKG/usr/share/icons/hicolor/${res}x${res}/apps cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \ $PKG/usr/share/icons/hicolor/${res}x${res}/mimetypes done # les liens ln -s ../lib/libreoffice/program/spadmin $PKG/usr/bin/printeradmin ln -s ../lib/libreoffice/program/unopkg $PKG/usr/bin # Manuels mkdir -p $PKG/usr/share/man/man1 cp -v sysui/desktop/man/{libreoffice,unopkg}.1 \ $PKG/usr/share/man/man1/ # Les lançeurs graphiques mkdir -p $PKG/usr/share/applications for program in base calc draw impress math writer do echo "[Desktop Entry] Encoding=UTF-8 Type=Application Name=${program^} Comment=Libre Office ${program^} Icon=${program} Exec=${program} Categories=Office;Application; StartupNotify=true Terminal=false" > $PKG/usr/share/applications/${program}.desktop done echo "[Desktop Entry] Encoding=UTF-8 Type=Application Name=Printer Administration Comment=Libre Office Printer Administration Icon=printeradmin Exec=printeradmin Categories=Office;Printing;Application; StartupNotify=true Terminal=false" > $PKG/usr/share/applications/printeradmin.desktop }