Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libreoffice-still 24.8.4 #200942

Merged
merged 1 commit into from
Feb 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions Casks/l/libreoffice-still.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@
arch arm: "aarch64", intel: "x86-64"
folder = on_arch_conditional arm: "aarch64", intel: "x86_64"

version "24.2.7"
sha256 arm: "44e2229c4e26bdd7f9270a79e4da363a08f4de87b698a3806295e9e50cbb1b62",
intel: "57b0af3ca12043ec3da6782ba58c094b12123549806451557f5a0a6e307a575a"
version "24.8.4"
sha256 arm: "cef2ac5ae8dda894cdd86c97bcd6da72ede81e78b1afa7d99d8676ac135ae114",
intel: "4322f7bda190887605acbdd73cd568d55ac366ca1f2cda82b029ef3de9ae071a"

url "https://download.documentfoundation.org/libreoffice/stable/#{version}/mac/#{folder}/LibreOffice_#{version}_MacOS_#{arch}.dmg",
verified: "download.documentfoundation.org/libreoffice/stable/"
name "LibreOffice Still"
desc "Free cross-platform office suite, stable version recommended for enterprises"
homepage "https://www.libreoffice.org/"

# Upstream may upload a new version to the stable directory
# (https://download.documentfoundation.org/libreoffice/stable/) before it's
# released, so we check the versions in the release notes instead.
# This checks the same source of version information as the `libreoffice`
# cask, so we need to make sure that the former always checks a page that
# provides the latest versions for both Fresh and Still.
livecheck do
url "https://www.libreoffice.org/download/release-notes/"
regex(/LibreOffice\s*v?(\d+(?:\.\d+)+)\s*\([^)]+\)[^<]*?Previous\s+Release/im)
cask "libreoffice"
strategy :page_match do |page, regex|
versions = page.scan(regex).map(&:first)
uniq_major_minor = versions.map { |version| Version.new(version).major_minor }.uniq.sort.reverse
next if uniq_major_minor.length < 2

versions.select { |version| Version.new(version).major_minor == uniq_major_minor[1] }
end
end

conflicts_with cask: "libreoffice"
Expand Down