Files
chromebrew/packages/perl_lwp_protocol_https.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* 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)
2024-01-25 11:03:31 -05:00

35 lines
1.1 KiB
Ruby

require 'package'
class Perl_lwp_protocol_https < Package
description 'Provide https support for LWP::UserAgent'
homepage 'https://metacpan.org/pod/LWP::Protocol::https'
version '6.10-perl5.38'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/O/OA/OALDERS/LWP-Protocol-https-6.10.tar.gz'
source_sha256 'cecfc31fe2d4fc854cac47fce13d3a502e8fdfe60c5bc1c09535743185f2a86c'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '9b9232091cc3337f593b3d568a601c4c122074669c78b85b540c48984d81cbe7',
armv7l: '9b9232091cc3337f593b3d568a601c4c122074669c78b85b540c48984d81cbe7',
i686: 'cdb8b8b7f67f1d64fff17a93df98747ca3472de3c774f7dc58d8c9cb4e9c8e7b',
x86_64: 'e6d9c1d85428390d57dd25a2c6698750e9d5c990dfdbaa9cffb5a541871c5efe'
})
no_compile_needed
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