Files
chromebrew/packages/ascii.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

35 lines
1.5 KiB
Ruby

require 'package'
class Ascii < Package
description 'List ASCII idiomatic names and octal/decimal code-point forms.'
homepage 'http://www.catb.org/~esr/ascii/'
version '3.18-1'
license 'BSD'
compatibility 'all'
source_url 'http://www.catb.org/~esr/ascii/ascii-3.18.tar.gz'
source_sha256 '728422d5f4da61a37a17b4364d06708e543297de0a5f70305243236d80df072d'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_armv7l/ascii-3.18-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_armv7l/ascii-3.18-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_i686/ascii-3.18-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/ascii/3.18_x86_64/ascii-3.18-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '63c6f3c239267c0b815e21f4dd697e2aff4eea42b7612f0e6ef2355bec4af25a',
armv7l: '63c6f3c239267c0b815e21f4dd697e2aff4eea42b7612f0e6ef2355bec4af25a',
i686: '842cdd491d6d8e7cfaafc2787cee021bbcf76bd70c70dd76397bff6391c9e3ef',
x86_64: '4107a21b427fd0a090d73a89d06ace01d28d68ae84d56d3c3f159633304f1b22'
})
def self.build
system 'make'
end
def self.install
system 'gzip -9 ascii.1'
system "install -Dm755 ascii #{CREW_DEST_PREFIX}/bin/ascii"
system "install -Dm644 ascii.1.gz #{CREW_DEST_PREFIX}/man/man1/ascii.1.gz"
end
end