From 914202645f0c0ec01090f04e2bd972f75377c20b Mon Sep 17 00:00:00 2001 From: tnut Date: Wed, 2 May 2012 21:27:55 +0200 Subject: ajout de libreoffice 3.5.2.2-1 --- libreoffice/.md5sum.i686 | 4 ++ libreoffice/.md5sum.x86_64 | 4 ++ libreoffice/Pkgfile | 112 +++++++++++++++++++++++++++++++++++++++++++++ libreoffice/README | 3 ++ libreoffice/post-install | 1 + 5 files changed, 124 insertions(+) create mode 100644 libreoffice/.md5sum.i686 create mode 100644 libreoffice/.md5sum.x86_64 create mode 100644 libreoffice/Pkgfile create mode 100644 libreoffice/README create mode 100644 libreoffice/post-install diff --git a/libreoffice/.md5sum.i686 b/libreoffice/.md5sum.i686 new file mode 100644 index 000000000..98ad52d6c --- /dev/null +++ b/libreoffice/.md5sum.i686 @@ -0,0 +1,4 @@ +a21156d5657b8619a523ffdc5cc0003e libreoffice-core-3.5.2.2.tar.xz +782d0cecfccc200f8ad0a07f0cb53f08 libreoffice-dictionaries-3.5.2.2.tar.xz +3c064a24191274fcd8fd466ce9d5dc42 libreoffice-help-3.5.2.2.tar.xz +17ebcd0d25e716d3905b1a905907fd67 libreoffice-translations-3.5.2.2.tar.xz diff --git a/libreoffice/.md5sum.x86_64 b/libreoffice/.md5sum.x86_64 new file mode 100644 index 000000000..98ad52d6c --- /dev/null +++ b/libreoffice/.md5sum.x86_64 @@ -0,0 +1,4 @@ +a21156d5657b8619a523ffdc5cc0003e libreoffice-core-3.5.2.2.tar.xz +782d0cecfccc200f8ad0a07f0cb53f08 libreoffice-dictionaries-3.5.2.2.tar.xz +3c064a24191274fcd8fd466ce9d5dc42 libreoffice-help-3.5.2.2.tar.xz +17ebcd0d25e716d3905b1a905907fd67 libreoffice-translations-3.5.2.2.tar.xz diff --git a/libreoffice/Pkgfile b/libreoffice/Pkgfile new file mode 100644 index 000000000..55b22a708 --- /dev/null +++ b/libreoffice/Pkgfile @@ -0,0 +1,112 @@ +# Description: Suite pour le bureau libre +# URL: http://www.libreoffice.org +# Maintainer: cgit.freedesktop.org/libreoffice/core +# Packager: thierryn1 at hispeed dot ch +# Depends: 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 +# 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() { + cd $name-core-$version + tar -xf ../$name-translations-$version.tar.xz --strip-components=1 + tar -xf ../$name-help-$version.tar.xz --strip-components=1 + tar -xf ../$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 +} + + diff --git a/libreoffice/README b/libreoffice/README new file mode 100644 index 000000000..34e0630fc --- /dev/null +++ b/libreoffice/README @@ -0,0 +1,3 @@ +Merci à fanch d'avoir initier la mise à dispo de libreoffice dans NuTyX. +Le Pkgfile est inspiré de l'excellent livre BLFS. Merci encore pour leur +excellent travail. diff --git a/libreoffice/post-install b/libreoffice/post-install new file mode 100644 index 000000000..699bad0c9 --- /dev/null +++ b/libreoffice/post-install @@ -0,0 +1 @@ +/usr/bin/gtk-update-icon-cache /usr/share/icons/hicolor -- cgit v1.2.3-54-g00ecf