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