Files
chromebrew/packages/gawk.rb
Casey Strouse 3ef49b16f1 Update gawk from 4.1.4-1 to 4.2.0
This is a major release and contains a large number of fixes, new
features, and changes to behavior.

Tested as working on Samsung Chromebook Plus (aarch64).
2017-11-01 09:55:36 -07:00

34 lines
860 B
Ruby

require 'package'
class Gawk < Package
description 'The gawk utility interprets a special-purpose programming language that makes it possible to handle simple data-reformatting jobs with just a few lines of code.'
homepage 'https://www.gnu.org/software/gawk/'
version '4.2.0'
source_url 'https://ftp.gnu.org/gnu/gawk/gawk-4.2.0.tar.xz'
source_sha256 'd4f3cd31c001fd0ed52832d4fbfbdfeaa38ad541c182f80ff8fdf87324a6a9f2'
binary_url ({
})
binary_sha256 ({
})
depends_on 'libsigsegv'
depends_on 'readline' => :build
depends_on 'ncurses'
depends_on 'mpfr'
depends_on 'gmp'
def self.build
system './configure', "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system 'make', 'check'
end
end