Files
chromebrew/packages/perl_text_charwidth.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_text_charwidth < Package
description 'Text::CharWidth - Get number of occupied columns of a string on terminals'
homepage 'https://metacpan.org/pod/Text::CharWidth'
version '0.04-perl-5.36'
license 'GPL-1+ or Artistic'
compatibility 'all'
source_url 'https://cpan.metacpan.org/authors/id/K/KU/KUBOTA/Text-CharWidth-0.04.tar.gz'
source_sha256 'abded5f4fdd9338e89fd2f1d8271c44989dae5bf50aece41b6179d8e230704f8'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '43b5c99fd673e7ac47a11516367505afb89c022b9388706e19d54517436ea7bc',
armv7l: '43b5c99fd673e7ac47a11516367505afb89c022b9388706e19d54517436ea7bc',
i686: 'fd86eeb4a6a524e4fe2314fdc4c5e4f454538485526aad1751cc5e175046a528',
x86_64: '67be1d93589b122d905c9685378fb95eaf5403ac80472481f1baa826c0375571'
})
depends_on 'glibc' # R
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