Files
chromebrew/packages/hunspell_en_us.rb
chromebrew-actions[bot] b7f44296af Add unbuilt gnome_text_editor to updater-gnome_text_editor-49.0 — hunspell_es_us → 25.8.3.2,libspelling → 0.4.9,enchant → 2.8.12,gnome_text_editor → 49.0,gtksourceview_5 → 5.18.0,hunspell,hunspell_base → 1.7.2,hunspell_en_us → 25.8.3.2,hunspell_es_any → 6.4,hunspell_fr_fr → 25.8.3.2 (#13422)
* Add unbuilt gnome_text_editor to updater-gnome_text_editor-49.0

* Add binaries and add deps

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* updater-gnome_text_editor-49.0: Package File Update Run on linux/386 container.

* updater-gnome_text_editor-49.0: Package File Update Run on linux/amd64 container.

* updater-gnome_text_editor-49.0: Package File Update Run on linux/arm/v7 container.

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2025-11-11 22:38:53 +00:00

33 lines
1.1 KiB
Ruby

require 'package'
class Hunspell_en_us < Package
description 'Hunspell US English dictionary'
homepage 'http://hunspell.github.io/'
version '25.8.3.2'
license 'MPL-1.1, GPL-2 and LGPL-2.1'
compatibility 'all'
source_url 'https://github.com/LibreOffice/dictionaries.git'
git_hashtag "libreoffice-#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '8bde230cb123cd04ce1e36d51cee6b3225d61c1c7b8d3962c397a31cca68f155',
armv7l: '8bde230cb123cd04ce1e36d51cee6b3225d61c1c7b8d3962c397a31cca68f155',
i686: 'a886e2a0a037b7f9363414c786ff6124c48d1377eba391b9a686f85c78158287',
x86_64: '50c560f73838494afce43cbf3d60d48a72a8499493ec78bbba48d27c0ec75b8d'
})
depends_on 'hunspell_base'
def self.install
FileUtils.install 'en/en_US.aff', "#{CREW_DEST_HOME}/Library/Spelling/en_US.aff", mode: 0o644
FileUtils.install 'en/en_US.dic', "#{CREW_DEST_HOME}/Library/Spelling/en_US.dic", mode: 0o644
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d/"
File.write "#{CREW_DEST_PREFIX}/etc/env.d/hunspell_en_us", <<~EOF
# American English hunspell configuration
export DICTIONARY=en_US
EOF
end
end