Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. # Maintainer: Simon Wilper <sxw@chronowerks.de>
  2. pkgname=libreoffice-slim-git
  3. pkgver=latest
  4. pkgrel=1
  5. pkgdesc="A slimmed down Git version of LibreOffice"
  6. arch=('x86_64' 'i386')
  7. url="https://www.libreoffice.org/community/developers/"
  8. license=('GPL')
  9. makedepends=('git')
  10.  
  11. _gitroot=https://anongit.freedesktop.org/git/libreoffice/core.git
  12. _gitname=core
  13.  
  14. prepare() {
  15. cd "$srcdir"
  16. msg "Connecting to GIT server...."
  17.  
  18. if [[ -d "$_gitname" ]]; then
  19. cd "$_gitname" && git pull -r
  20. msg "The local files are updated."
  21. else
  22. git clone --depth 1 "$_gitroot" "$_gitname"
  23. fi
  24.  
  25. msg "GIT checkout done or server timeout"
  26. msg "Starting build..."
  27.  
  28. cd "${srcdir}/${_gitname}"
  29.  
  30. [[ -d workdir ]] && make clean
  31.  
  32. build_hash=$(git log --pretty=%h | head -n1)
  33. build_date=$(date +%Y%m%d)
  34. ./autogen.sh \
  35. --enable-release-build \
  36. --enable-python=internal \
  37. --enable-epm \
  38. --with-package-format=archive \
  39. --with-galleries=no \
  40. --with-java=no \
  41. --without-fonts \
  42. --disable-odk \
  43. --without-help \
  44. --without-helppack-integration \
  45. --with-build-version="${pkgver}-${pkgrel}" \
  46. --disable-avahi \
  47. --disable-avmedia \
  48. --disable-gstreamer-1-0 \
  49. --disable-cups \
  50. --disable-database-connectivity \
  51. --disable-report-builder \
  52. --disable-pdfimport \
  53. --disable-lpsolve \
  54. --disable-coinmp \
  55. --disable-dbus \
  56. --disable-firebird-sdbc \
  57. --disable-postgresql-sdbc \
  58. --disable-database-connectivity \
  59. --disable-randr \
  60. --with-system-libcmis \
  61. --with-system-expat \
  62. --with-system-xmlsec \
  63. --with-system-libeot \
  64. --with-system-lcms2 \
  65. --with-system-cppunit \
  66. --with-system-libatomic_ops \
  67. --with-system-mdds \
  68. --with-system-nss \
  69. --with-system-orcus \
  70. --with-boost-system \
  71. --with-system-graphite \
  72. --with-system-harfbuzz \
  73. --with-system-apr \
  74. --with-system-serf \
  75. --with-system-neon \
  76. --with-system-openssl \
  77. --with-system-redland \
  78. --with-system-libexttextcat \
  79. --with-system-libnumbertext \
  80. --with-system-epoxy \
  81. --with-system-libpng \
  82. --enable-lto
  83. #--without-doxygen (in odk enthalten)
  84. #--with-system-mariadb \
  85. #--disable-bundle-mariadb \
  86. }
  87.  
  88. build() {
  89. cd "${srcdir}/${_gitname}"
  90. LC_ALL=C make build-nocheck
  91. cd workdir/installation/LibreOffice/archive/install/en-US
  92. msg "Extracting LibreOffice Installation Tarball..."
  93. tar xf *.tar.gz
  94. }
  95.  
  96. package() {
  97. cd "${pkgdir}"
  98. install -d -m755 ${pkgdir}/opt/lo
  99. cp -r ${srcdir}/${_gitname}/workdir/installation/LibreOffice/archive/install/en-US/LibreOffice*/* ${pkgdir}/opt/lo
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement