SHARE
TWEET

LibreOffice's Pkgfile

a guest Nov 15th, 2012 10 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Description: Suite pour le bureau libre
  2. # URL: http://www.libreoffice.org
  3. # Maintainer: cgit.freedesktop.org/libreoffice/core
  4. # Packager: piernov <piernov@piernov.org>
  5. # 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
  6. # 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
  7.  
  8. name=libreoffice
  9. version=3.6.3.2
  10. release=1
  11. source=(http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-core-$version.tar.xz
  12.         http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-dictionaries-$version.tar.xz
  13.         http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-help-$version.tar.xz
  14.         http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-translations-$version.tar.xz
  15.         http://www.linuxfromscratch.org/patches/blfs/svn/libreoffice-core-3.6.3.2-poppler_fix-1.patch
  16.         additional_source)
  17.  
  18. build() {
  19.  
  20.         cd $PKGMK_SOURCE_DIR
  21.         for i in `cat $SRC/additional_source`; do
  22.                 pkg_md5sum=$(echo "${i}" | sed "s|-.*||g")
  23.                 [[ -r "$PKGMK_SOURCE_DIR/${i}" ]] || wget "http://dev-www.libreoffice.org/src/${i}" -O "$PKGMK_SOURCE_DIR/${i}"
  24.                 echo "${pkg_md5sum}  ${i}" | md5sum -c -
  25.         done
  26.  
  27.         cd $SRC/$name-core-$version
  28.  
  29.         ln -s ../libreoffice-help-$version/helpcontent2 .
  30.         ln -s ../libreoffice-translations-$version/translations .
  31.         ln -s ../libreoffice-dictionaries-$version/dictionaries .
  32.  
  33.         #sed -i '/$Prepend/s:^[^#]:# &:' i18npool/source/breakiterator/data/char{,_in}.txt
  34.  
  35.         patch -p1 < ../libreoffice-core-3.6.3.2-poppler_fix-1.patch
  36.  
  37.         export PYTHON=python2
  38.  
  39.         ./autogen.sh --prefix=/usr \
  40.                 --sysconfdir=/etc \
  41.                 --libdir=/usr/lib \
  42.                 --mandir=/usr/share/man \
  43.                 --with-unix-wrapper="libreoffice" \
  44.                 --enable-split-app-modules \
  45.                 --with-external-tar="$PKGMK_SOURCE_DIR" \
  46.                 --disable-fetch-external \
  47.                 --disable-binfilter      \
  48.                 --disable-gconf          \
  49.                 --disable-mozilla        \
  50.                 --disable-odk            \
  51.                 --enable-dbus \
  52.                 --enable-gio \
  53.                 --enable-gtk3 \
  54.                 --enable-librsvg=system \
  55.                 --enable-opengl \
  56.                 --with-system-boost      \
  57.                 --with-system-cairo      \
  58.                 --with-system-clucene \
  59.                 --without-system-cppunit\
  60.                 --with-system-curl       \
  61.                 --with-system-db         \
  62.                 --with-system-dicts \
  63.                 --with-external-dict-dir=/usr/share/hunspell \
  64.                 --with-external-hyph-dir=/usr/share/hyphen \
  65.                 --with-system-expat      \
  66.                 --with-system-gettext    \
  67.                 --without-system-graphite \
  68.                 --with-system-hunspell   \
  69.                 --with-system-icu        \
  70.                 --with-system-jpeg       \
  71.                 --with-system-libs \
  72.                 --without-system-libcdr \
  73.                 --without-system-libcmis \
  74.                 --without-system-libexttextcat \
  75.                 --with-system-libpng     \
  76.                 --without-system-lpsolve \
  77.                 --without-system-libvisio \
  78.                 --with-system-libwpd     \
  79.                 --with-system-libwpg     \
  80.                 --without-system-libwps\
  81.                 --with-system-libxml     \
  82.                 --without-system-mdds \
  83.                 --without-system-mozilla \
  84.                 --without-system-mozilla-headers \
  85.                 --without-system-mythes \
  86.                 --with-system-neon       \
  87.                 --with-system-nss        \
  88.                 --with-system-openssl    \
  89.                 --with-system-poppler    \
  90.                 --with-system-postgresql \
  91.                 --with-system-redland    \
  92.                 --without-system-vigra \
  93.                 --with-system-zlib       \
  94.                 --with-num-cpus=$(getconf _NPROCESSORS_ONLN) \
  95.                 --with-max-jobs=$(getconf _NPROCESSORS_ONLN) \
  96.                 --with-lang="ALL"      \
  97.                 --without-java
  98.  
  99.         touch src.downloaded
  100.  
  101.         rm -f stamp/build.extra.translations stamp/build.extra.translations.lang.list
  102.  
  103.         make
  104.         make DESTDIR=$PKG install
  105.  
  106.         # les liens
  107.         ln -s ../lib/libreoffice/program/spadmin $PKG/usr/bin/printeradmin
  108.         ln -s ../lib/libreoffice/program/unopkg $PKG/usr/bin
  109.  
  110.         # Manuels
  111.         mkdir -p $PKG/usr/share/man/man1
  112.         cp -v sysui/desktop/man/{libreoffice,unopkg}.1 $PKG/usr/share/man/man1/
  113. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top