talimat 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Description: LibreOffice tam özellikli bir ofis paketidir. Microsoft Office ile büyük ölçüde uyumludur ve OpenOffice.org'dan gelmektedir.
  2. # URL: http://www.libreoffice.org
  3. # Packagers: alihan-ozturk28@hotmail.com
  4. # Depends on: tar apache-ant junit openldap python3 cups curl libatomic-ops gtk2 gtk3 perl-archive-zip perl-xml-parser boost expat gstreamer-plugins-base gstreamer1-plugins-base libgsf librsvg libxml2 libxslt neon nss poppler postgresql redland icu hunspell gsfonts dejavu-ttf p7zip graphite2 npapi-sdk clucene serf unixodbc
  5. PKGMK_IGNORE_UNPACK="yes"
  6. name=libreoffice
  7. version=5.2.3.3
  8. release=1
  9. source=(http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-$version.tar.xz)
  10. build() {
  11. unset ACLOCAL
  12. export LO_PREFIX=/usr
  13. tar -xf ../../../sources/libreoffice-5.2.3.3.tar.xz --no-overwrite-dir
  14. cd $name-$version
  15. install -dm755 external/tarballs
  16. cd external/tarballs/
  17. wget http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-dictionaries-$version.tar.xz
  18. wget http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-help-$version.tar.xz
  19. wget http://download.documentfoundation.org/libreoffice/src/${version%.*}/$name-translations-$version.tar.xz
  20. cd ../../
  21. sed -e "/gzip -f/d" \
  22. -e "s|.1.gz|.1|g" \
  23. -i bin/distro-install-desktop-integration
  24. sed -e "/distro-install-file-lists/d" -i Makefile.in
  25. sed -e "/ustrbuf/a #include <algorithm>" \
  26. -i svl/source/misc/gridprinter.cxx
  27. sed -i "s#isnan#std::&#g" xmloff/source/draw/ximp3dscene.cxx
  28. # i686 build broken
  29. [ "$PKGMK_ARCH" = "i686" ] && sed -i '/CppunitTest_sw_ooxmlimport/d' sw/Module_sw.mk
  30. [ "$PKGMK_ARCH" = "i686" ] && sed -i '/CppunitTest_sw_ooxmlexport7/d' sw/Module_sw.mk
  31. chmod -v +x bin/unpack-sources
  32. ./autogen.sh --prefix=$LO_PREFIX \
  33. --sysconfdir=/etc \
  34. --with-vendor="Milis" \
  35. --with-lang="es tr ar ru en-GB fr" \
  36. --with-help \
  37. --with-myspell-dicts \
  38. --with-alloc=system \
  39. --with-java \
  40. --without-system-dicts \
  41. --disable-dconf \
  42. --disable-odk \
  43. --disable-firebird-sdbc \
  44. --enable-release-build=yes \
  45. --enable-python=system \
  46. --with-system-apr \
  47. --with-system-boost=yes \
  48. --with-system-clucene \
  49. --with-system-cairo \
  50. --with-system-curl \
  51. --with-system-expat \
  52. --with-system-graphite \
  53. --with-system-harfbuzz \
  54. --with-system-icu \
  55. --with-system-jpeg \
  56. --with-system-lcms2 \
  57. --with-system-libatomic_ops \
  58. --with-system-libpng \
  59. --with-system-libxml \
  60. --with-system-neon \
  61. --with-system-nss \
  62. --with-system-odbc \
  63. --with-system-openldap \
  64. --with-system-openssl \
  65. --with-system-poppler \
  66. --with-system-postgresql \
  67. --with-system-redland \
  68. --with-system-serf \
  69. --with-system-zlib \
  70. --with-jdk-home=/opt/jdk \
  71. --with-ant-home=/opt/ant \
  72. --with-parallelism=$(getconf _NPROCESSORS_ONLN)
  73. make build-nocheck
  74. make DESTDIR=$PKG distro-pack-install
  75. install -v -m755 -d $PKG/$LO_PREFIX/share/appdata
  76. install -v -m644 sysui/desktop/appstream-appdata/*.xml $PKG/$LO_PREFIX/share/appdata
  77. # Installation des Dictionnaires
  78. chown -cR 0:0 dictionaries/
  79. for lang in en fr_FR es de it_IT pt_PT no nl_NL sv_SE da_DK
  80. do
  81. mkdir -pv $PKG/$LO_PREFIX/lib/libreoffice/share/extensions/dict-$lang
  82. cp -R dictionaries/$lang/* $PKG/$LO_PREFIX/lib/libreoffice/share/extensions/dict-$lang
  83. done
  84. # This symlink is necessary for the desktop menu entries
  85. ln -sv -f $LO_PREFIX/lib/libreoffice/program/soffice \
  86. $PKG/usr/bin/libreoffice
  87. # Icones
  88. for res in 16 32 48 128 256
  89. do
  90. mkdir -p $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/{apps,mimetypes}
  91. cp sysui/desktop/icons/hicolor/${res}x${res}/apps/*.png \
  92. $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/apps
  93. cp sysui/desktop/icons/hicolor/${res}x${res}/mimetypes/*.png \
  94. $PKG/$LO_PREFIX/share/icons/hicolor/${res}x${res}/mimetypes
  95. done
  96. # Nettoyage
  97. rm -rf $PKG/gid*
  98. rm -rf $PKG/usr/share/man
  99. }