Commit 64e31d93 authored by satmandu's avatar satmandu Committed by GitHub

grep rebuild (#5549)

* grep rebuild

* build without-regex
parent 75a9fa24
# Adapted from Arch Linux grep PKGBUILD at:
# https://github.com/archlinux/svntogit-packages/raw/packages/grep/trunk/PKGBUILD
require 'package'
class Grep < Package
description 'A string search utility'
homepage 'https://www.gnu.org/software/grep/'
version '3.6'
version '3.6-2'
license 'GPL-3+'
compatibility 'all'
source_url 'https://ftp.gnu.org/gnu/grep/grep-3.6.tar.xz'
source_sha256 '667e15e8afe189e93f9f21a7cd3a7b3f776202f417330b248c2ad4f997d9373e'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/grep-3.6-2-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '87ebec000c54b032f1e2720b03a30dfb13f14dc3a2a68a4c943daae64dc5ee34',
armv7l: '87ebec000c54b032f1e2720b03a30dfb13f14dc3a2a68a4c943daae64dc5ee34',
i686: 'a6a62d2c91c346041fc4408727e387e2cc415e304d2ca7d372a97256520d6f64',
x86_64: '0106cbf95ada69fc0205b4af06af4e46144156934555b5bd9376e4c00d61092f',
binary_sha256({
aarch64: '668f794614cab844c7e29d4970ea5c1ab0ff15d822dff5c806efd769d81d9097',
armv7l: '668f794614cab844c7e29d4970ea5c1ab0ff15d822dff5c806efd769d81d9097',
i686: '25070365f43b5204c58e1830fbf3651a3163013d0c034f27c22bb086d6210032',
x86_64: 'e232de82d2e313efe7e14f10620471ed25f54ccfb5eeffebde8defead9c20acf'
})
depends_on 'pcre'
def self.build
ENV['CFLAGS'] = '-flto'
system "./configure #{CREW_OPTIONS}\
system "env CFLAGS='-flto' CXXFLAGS='-flto' \
LDFLAGS='-flto -Wl,-z,defs -Wl,--no-as-needed -ldl -Wl,--as-needed' \
CPPFLAGS=-DHAVE_DYNAMIC_LIBPCRE \
./configure #{CREW_OPTIONS} \
--without-included-regex"
system "make"
system 'make'
end
def self.install
system "make DESTDIR=#{CREW_DEST_DIR} install"
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