Files
chromebrew/packages/iso_codes.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

34 lines
1.5 KiB
Ruby

require 'package'
class Iso_codes < Package
description 'Provides lists of various ISO standards (countries, languages, language scripts, and currency names)'
homepage 'https://salsa.debian.org/iso-codes-team/iso-codes'
version '4.1'
license 'LGPL-2.1+'
compatibility 'all'
source_url 'https://salsa.debian.org/iso-codes-team/iso-codes/uploads/049ce6aac94d842be809f4063950646c/iso-codes-4.1.tar.xz'
source_sha256 '67117fb76f32c8fb5e37d2d60bce238f1f8e865cc7b569a57cbc3017ca15488a'
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iso_codes/4.1_armv7l/iso_codes-4.1-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iso_codes/4.1_armv7l/iso_codes-4.1-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iso_codes/4.1_i686/iso_codes-4.1-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/iso_codes/4.1_x86_64/iso_codes-4.1-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '3842e352264375e1b331bc14e4bdfceb56c27978e4ca96b0572c96db980266c0',
armv7l: '3842e352264375e1b331bc14e4bdfceb56c27978e4ca96b0572c96db980266c0',
i686: '61d56299e86b904fec2595653853dbbc1029631867b335896834d6cc3c65f9bb',
x86_64: '5491ddcffd603df2cecdaa60f4ea498f290f117cf1202aa1bfc85af35e19772c'
})
def self.build
system "./configure --prefix=#{CREW_PREFIX}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end