Commit bcb64e48 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Merge pull request #5390 from satmandu/mawk

mawk: Add awk symlink
parents 4ebf0092 21a7df1a
......@@ -3,31 +3,35 @@ require 'package'
class Mawk < Package
description 'mawk is a POSIX compatible interpreter of the awk language faster than gawk.'
homepage 'https://salsa.debian.org/debian/mawk'
version '1.3.4'
version '1.3.4-1'
compatibility 'all'
source_url 'https://salsa.debian.org/debian/mawk/-/archive/debian/1.3.4.20200120-2/mawk-debian-1.3.4.20200120-2.tar.bz2'
source_sha256 '61bd21eb4a62b6e1ff199d4c7cb9f9e1cc882ac24e75ad2dab04e190e87656dc'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mawk-1.3.4-1-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '0eddc2546aec3f7402a1ec1f18434c657f36f63a13c4ca510fbb0343fe413834',
armv7l: '0eddc2546aec3f7402a1ec1f18434c657f36f63a13c4ca510fbb0343fe413834',
i686: 'fbe137d9f6fb87cc215c3844f933b1888cd20c6077e20250426c52d205a8f551',
x86_64: '94497fe2244022404ce1a8e61277635446b72d8d170d7d64ecabf94c2f857778',
binary_sha256({
aarch64: '7260801b0b8a202d56853c8ca65c30918a7a67e5eea2ca500b2373f276f5d590',
armv7l: '7260801b0b8a202d56853c8ca65c30918a7a67e5eea2ca500b2373f276f5d590',
i686: '8bc8d6247fe663b33c9f318900ac96a851dce20845758dfa2f6c44cd16add93d',
x86_64: '5cfce5981ae0c1d388f6d716cc6205485877c593bee96ff44005ed0fba0c6fc3'
})
def self.build
system "./configure \
#{CREW_OPTIONS}"
system "make"
system "env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
./configure \
#{CREW_OPTIONS}"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
FileUtils.ln_s "#{CREW_PREFIX}/bin/mawk", "#{CREW_DEST_PREFIX}/bin/awk"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment