mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 16:08:08 -05:00
* Add binary_compression value to each package * Remove binary_url values and arrays * Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
28 lines
1000 B
Ruby
28 lines
1000 B
Ruby
require 'package'
|
|
|
|
class Words < Package
|
|
description 'A dictionary of English words.'
|
|
homepage 'https://en.wikipedia.org/wiki/Words_(Unix)'
|
|
version '1.0.0'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/saltedcoffii/words/releases/download/1.0.0/words-1.0.0.txz'
|
|
source_sha256 '61168093e1ff4f88d838e09e40530cc0c192672ad0dbc01806534e9def296c3b'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: '42309c5ae83987a15d29c6458db87eaa4402c068dedb8f01258cec29c4672eeb',
|
|
armv7l: '42309c5ae83987a15d29c6458db87eaa4402c068dedb8f01258cec29c4672eeb',
|
|
i686: '3b31ade23762c2e604890643ba5d7d3b579af215a7ec6049cb2b21c4e269990a',
|
|
x86_64: '7f05c55148da13219f63f09588465197f9417c6a950464ffec42eea6626ef2b2'
|
|
})
|
|
|
|
def self.install
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/share"
|
|
FileUtils.cp_r 'dict', "#{CREW_DEST_PREFIX}/share"
|
|
Dir.chdir "#{CREW_DEST_PREFIX}/share/dict" do
|
|
FileUtils.symlink 'american-english', 'words'
|
|
end
|
|
end
|
|
end
|