Files
chromebrew/packages/onlyoffice.rb
chromebrew-actions[bot] 5beffb4e97 onlyoffice -> 9.3.1 in updater-onlyoffice-9.3.1 — onlyoffice: 9.3.0 → 9.3.1 (#14897)
* onlyoffice -> 9.3.1 in updater-onlyoffice-9.3.1

* updater-onlyoffice-9.3.1: Package File Update Run on linux/amd64 container.

---------

Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
2026-03-06 02:32:20 +00:00

42 lines
1.2 KiB
Ruby

require 'package'
class Onlyoffice < Package
description 'The most complete office suite'
homepage 'https://www.onlyoffice.com/en/'
version '9.3.1'
license 'AGPL-3'
compatibility 'x86_64'
source_url "https://github.com/ONLYOFFICE/appimage-desktopeditors/releases/download/v#{version}/DesktopEditors-x86_64.AppImage"
source_sha256 '97a97d74e7f5b524c6e26b59c4eb5c4ce6499193b9a7f5dc3631901c0e07445f'
depends_on 'gtk3' # R
depends_on 'gdk_base' # R
depends_on 'gsettings_desktop_schemas' # R
depends_on 'libnotify' # R
depends_on 'sommelier' => :logical
gnome
no_compile_needed
no_shrink
def self.build
File.write 'onlyoffice', <<~EOF
#!/bin/bash
export LD_LIBRARY_PATH=#{CREW_PREFIX}/share/onlyoffice/usr/lib:$LD_LIBRARY_PATH
cd #{CREW_PREFIX}/share/onlyoffice
./AppRun "$@"
EOF
end
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share/onlyoffice"
FileUtils.install 'onlyoffice', "#{CREW_DEST_PREFIX}/bin/onlyoffice", mode: 0o755
FileUtils.mv Dir['*'], "#{CREW_DEST_PREFIX}/share/onlyoffice"
end
def self.postinstall
ExitMessage.add "\nType 'onlyoffice' to get started.\n"
end
end