Add onlyoffice package (#10042)

This commit is contained in:
Ed Reel
2024-06-27 14:51:06 -05:00
committed by GitHub
parent 28dce0e8e1
commit 3c789efb93
3 changed files with 5803 additions and 0 deletions

File diff suppressed because it is too large Load Diff

40
packages/onlyoffice.rb Normal file
View File

@@ -0,0 +1,40 @@
require 'package'
class Onlyoffice < Package
description 'The most complete office suite'
homepage 'https://www.onlyoffice.com/en/'
version '8.0.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 '85e9e23363fe5076cebffe5569a1bc0f51eb80bd424e5085d19ec84e936c33f2'
depends_on 'gtk3'
depends_on 'gdk_base'
depends_on 'gsettings_desktop_schemas'
depends_on 'sommelier'
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".lightblue
end
end

View File

@@ -6331,6 +6331,11 @@ url: https://github.com/kkos/oniguruma/releases
activity: medium
---
kind: url
name: onlyoffice
url: https://github.com/ONLYOFFICE/appimage-desktopeditors/releases
activity: medium
---
kind: url
name: opam
url: https://github.com/ocaml/opam/releases
activity: medium