Advertisement
Guest User

Untitled

a guest
Feb 1st, 2018
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.69 KB | None | 0 0
  1. pkgname=onlyoffice-bin
  2. pkgver=4.8.6.r386
  3. pkgrel=1
  4. pkgdesc='The most complete and feature-rich office and productivity suite'
  5. arch=('x86_64')
  6. url='http://www.onlyoffice.com/'
  7. depends=("alsa-lib" "nss" "libxtst" "qt5-x11extras" "qt5-svg" "gconf" "libx11" "libxss" "curl" "gtkglext" "cairo" "libstdc++5" "ttf-dejavu" "ttf-liberation" "libcurl-gnutls" "libcurl-compat")
  8. makedepends=('w3m')
  9. provides=('onlyoffice-desktopeditors')
  10. conflicts=('onlyoffice-desktopeditors-portable')
  11. license=('AGPL-3.0')
  12. source=("http://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb")
  13. sha256sums=('527134c5a0f0d74fd60909329b24152179e14adbee0c76b6a84c9b4ca335fd75')
  14.  
  15. package() {
  16.   bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}"
  17.  
  18.   rm -rf "${pkgdir}/opt/onlyoffice/desktopeditors/dictionaries/.git"
  19.   #suid sandbox
  20.   chmod 4755 "${pkgdir}/opt/onlyoffice/desktopeditors/chrome-sandbox"
  21.  
  22.   chmod +x "${pkgdir}/usr/bin/onlyoffice-desktopeditors"
  23.  
  24.   #fix wrong dependency
  25.   ln -s $(ls /usr/lib/libcurl-compat.so.*) "${pkgdir}/opt/onlyoffice/desktopeditors/converter/libcurl.so.4"
  26.  
  27.   for res in 16 24 32 48 64 128 256; do
  28.     install -Dm644 "${pkgdir}/opt/onlyoffice/desktopeditors/asc-de-${res}.png" "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/asc-de.png"
  29.   done
  30.  
  31.   cat "${pkgdir}/opt/onlyoffice/desktopeditors/LICENSE.htm" | w3m -I 'utf-8' -T 'text/html' > "${pkgdir}/opt/onlyoffice/desktopeditors/LICENSE"
  32.   install -Dm644 "${pkgdir}/opt/onlyoffice/desktopeditors/LICENSE"        "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  33.   install -Dm644 "${pkgdir}/opt/onlyoffice/desktopeditors/3DPARTYLICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/3DPARTYLICENSE"
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement