Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pkgname=onlyoffice-bin
- pkgver=4.8.6.r386
- pkgrel=1
- pkgdesc='The most complete and feature-rich office and productivity suite'
- arch=('x86_64')
- url='http://www.onlyoffice.com/'
- 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")
- makedepends=('w3m')
- provides=('onlyoffice-desktopeditors')
- conflicts=('onlyoffice-desktopeditors-portable')
- license=('AGPL-3.0')
- source=("http://download.onlyoffice.com/install/desktop/editors/linux/onlyoffice-desktopeditors_amd64.deb")
- sha256sums=('527134c5a0f0d74fd60909329b24152179e14adbee0c76b6a84c9b4ca335fd75')
- package() {
- bsdtar -xf "${srcdir}/data.tar.xz" -C "${pkgdir}"
- rm -rf "${pkgdir}/opt/onlyoffice/desktopeditors/dictionaries/.git"
- #suid sandbox
- chmod 4755 "${pkgdir}/opt/onlyoffice/desktopeditors/chrome-sandbox"
- chmod +x "${pkgdir}/usr/bin/onlyoffice-desktopeditors"
- #fix wrong dependency
- ln -s $(ls /usr/lib/libcurl-compat.so.*) "${pkgdir}/opt/onlyoffice/desktopeditors/converter/libcurl.so.4"
- for res in 16 24 32 48 64 128 256; do
- install -Dm644 "${pkgdir}/opt/onlyoffice/desktopeditors/asc-de-${res}.png" "${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/asc-de.png"
- done
- cat "${pkgdir}/opt/onlyoffice/desktopeditors/LICENSE.htm" | w3m -I 'utf-8' -T 'text/html' > "${pkgdir}/opt/onlyoffice/desktopeditors/LICENSE"
- install -Dm644 "${pkgdir}/opt/onlyoffice/desktopeditors/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm644 "${pkgdir}/opt/onlyoffice/desktopeditors/3DPARTYLICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/3DPARTYLICENSE"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement