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)
33 lines
1.0 KiB
Ruby
33 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Perl_parse_yapp < Package
|
|
description 'Parse::Yapp - Perl extension for generating and using LALR parsers.'
|
|
homepage 'https://metacpan.org/pod/Parse::Yapp'
|
|
version '1.21-perl5.38'
|
|
license 'GPL'
|
|
compatibility 'all'
|
|
source_url 'https://cpan.metacpan.org/authors/id/W/WB/WBRASWELL/Parse-Yapp-1.21.tar.gz'
|
|
source_sha256 '3810e998308fba2e0f4f26043035032b027ce51ce5c8a52a8b8e340ca65f13e5'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '304950660fbbe7f5ec73741ad6fbde700aa3e5c12358798cd920c0c48e3368e4',
|
|
armv7l: '304950660fbbe7f5ec73741ad6fbde700aa3e5c12358798cd920c0c48e3368e4',
|
|
i686: 'f4532e4e157d589d8ebde6b9bd2754ad936f22f9c4e8255b8937fa354d10dab7',
|
|
x86_64: '0b16bf60787ec109f9a76ce363f86cb59d05ed4385a734d944864142f519cd69'
|
|
})
|
|
|
|
def self.prebuild
|
|
system 'perl', 'Makefile.PL'
|
|
system "sed -i 's,/usr/local,#{CREW_PREFIX},g' Makefile"
|
|
end
|
|
|
|
def self.build
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|