Commit 4ec7b6d2 authored by saltedcoffii's avatar saltedcoffii Committed by GitHub

[New Package] words (#5209)

* [New Package] words

* CREW_DEST_DIR/usr/local => CREW_DEST_PREFIX
parent e7d27eb7
require 'package'
class Words < Package
description 'A dictionary of English words.'
homepage 'https://en.wikipedia.org/wiki/Words_(Unix)'
version '1.0.0'
compatibility 'all'
source_url 'https://github.com/saltedcoffii/words/releases/download/1.0.0/words-1.0.0.txz'
source_sha256 '61168093e1ff4f88d838e09e40530cc0c192672ad0dbc01806534e9def296c3b'
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment