Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Description: Suite pour le bureau libre
- # URL: http://www.libreoffice.org
- # Maintainer: cgit.freedesktop.org/libreoffice/core
- # Packager: piernov <[email protected]>
- # Depends on: cups, curl, gperf, gtk, gtk3, p5-archive-zip, p5-xml-parser, boost, expat, gst-plugins-base-0.10, libgsf, librsvg, libxml2, libxslt, neon, nss, poppler, libpostgresql, redland, icu, hunspell, gsfonts, dejavu-ttf, desktop-file-utils, libwpd, libwpg, dbus, mesa3d, clucene, sane, hyphen, glu, translate-toolkit, liberation-ttf
- # Run on: cups,curl,gperf,gtk,gtk3,expat,gst-plugins-base-0.10,libgsf,librsvg,libxslt,neon,nss,poppler,libpostgresql,redland,icu,hunspell,xorg-libxrandr,xorg-libxinerama,python,desktop-file-utils,libwpg,glu,liberation-ttf
- name=libreoffice
- version=3.6.3.2
- release=1
- source=(http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-core-$version.tar.xz
- http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-dictionaries-$version.tar.xz
- http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-help-$version.tar.xz
- http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-translations-$version.tar.xz
- http://www.linuxfromscratch.org/patches/blfs/svn/libreoffice-core-3.6.3.2-poppler_fix-1.patch
- additional_source)
- build() {
- cd $PKGMK_SOURCE_DIR
- for i in `cat $SRC/additional_source`; do
- pkg_md5sum=$(echo "${i}" | sed "s|-.*||g")
- [[ -r "$PKGMK_SOURCE_DIR/${i}" ]] || wget "http://dev-www.libreoffice.org/src/${i}" -O "$PKGMK_SOURCE_DIR/${i}"
- echo "${pkg_md5sum} ${i}" | md5sum -c -
- done
- cd $SRC/$name-core-$version
- ln -s ../libreoffice-help-$version/helpcontent2 .
- ln -s ../libreoffice-translations-$version/translations .
- ln -s ../libreoffice-dictionaries-$version/dictionaries .
- #sed -i '/$Prepend/s:^[^#]:# &:' i18npool/source/breakiterator/data/char{,_in}.txt
- patch -p1 < ../libreoffice-core-3.6.3.2-poppler_fix-1.patch
- export PYTHON=python2
- ./autogen.sh --prefix=/usr \
- --sysconfdir=/etc \
- --libdir=/usr/lib \
- --mandir=/usr/share/man \
- --with-unix-wrapper="libreoffice" \
- --enable-split-app-modules \
- --with-external-tar="$PKGMK_SOURCE_DIR" \
- --disable-fetch-external \
- --disable-binfilter \
- --disable-gconf \
- --disable-mozilla \
- --disable-odk \
- --enable-dbus \
- --enable-gio \
- --enable-gtk3 \
- --enable-librsvg=system \
- --enable-opengl \
- --with-system-boost \
- --with-system-cairo \
- --with-system-clucene \
- --without-system-cppunit\
- --with-system-curl \
- --with-system-db \
- --with-system-dicts \
- --with-external-dict-dir=/usr/share/hunspell \
- --with-external-hyph-dir=/usr/share/hyphen \
- --with-system-expat \
- --with-system-gettext \
- --without-system-graphite \
- --with-system-hunspell \
- --with-system-icu \
- --with-system-jpeg \
- --with-system-libs \
- --without-system-libcdr \
- --without-system-libcmis \
- --without-system-libexttextcat \
- --with-system-libpng \
- --without-system-lpsolve \
- --without-system-libvisio \
- --with-system-libwpd \
- --with-system-libwpg \
- --without-system-libwps\
- --with-system-libxml \
- --without-system-mdds \
- --without-system-mozilla \
- --without-system-mozilla-headers \
- --without-system-mythes \
- --with-system-neon \
- --with-system-nss \
- --with-system-openssl \
- --with-system-poppler \
- --with-system-postgresql \
- --with-system-redland \
- --without-system-vigra \
- --with-system-zlib \
- --with-num-cpus=$(getconf _NPROCESSORS_ONLN) \
- --with-max-jobs=$(getconf _NPROCESSORS_ONLN) \
- --with-lang="ALL" \
- --without-java
- touch src.downloaded
- rm -f stamp/build.extra.translations stamp/build.extra.translations.lang.list
- make
- make DESTDIR=$PKG install
- # 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/
- }
Advertisement
Add Comment
Please, Sign In to add comment