diff options
author | tnut <tnut at nutyx dot com> | 2012-05-02 21:27:55 +0200 |
---|---|---|
committer | tnut <tnut at nutyx dot com> | 2012-05-02 21:27:55 +0200 |
commit | 914202645f0c0ec01090f04e2bd972f75377c20b (patch) | |
tree | 287eccf1228c3e1c352bcbde5b6d11ecc1a18ae9 /libreoffice/Pkgfile | |
parent | bfbc76745ec8978b51bad9d8c057c75694f93f62 (diff) | |
download | nutyx-extra-914202645f0c0ec01090f04e2bd972f75377c20b.tar.gz nutyx-extra-914202645f0c0ec01090f04e2bd972f75377c20b.tar.bz2 nutyx-extra-914202645f0c0ec01090f04e2bd972f75377c20b.tar.xz nutyx-extra-914202645f0c0ec01090f04e2bd972f75377c20b.zip |
ajout de libreoffice 3.5.2.2-1
Diffstat (limited to 'libreoffice/Pkgfile')
-rw-r--r-- | libreoffice/Pkgfile | 112 |
1 files changed, 112 insertions, 0 deletions
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 +} + + |