Commit e4bb0dfc authored by James Larrowe's avatar James Larrowe Committed by Ed Reel

Update Sed package (#3077)

Remove selinux tests

Add pre-built binaries
parent 730fc6af
......@@ -3,33 +3,39 @@ require 'package'
class Sed < Package
description 'sed (stream editor) is a non-interactive command-line text editor.'
homepage 'https://www.gnu.org/software/sed/'
version '4.5-1'
source_url 'https://ftpmirror.gnu.org/sed/sed-4.5.tar.xz'
source_sha256 '7aad73c8839c2bdadca9476f884d2953cdace9567ecd0d90f9959f229d146b40'
version '4.7'
source_url 'https://ftpmirror.gnu.org/sed/sed-4.7.tar.xz'
source_sha256 '2885768cd0a29ff8d58a6280a270ff161f6a3deb5690b2be6c49f46d4c67bd6a'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.5-1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.5-1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.5-1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.5-1-chromeos-x86_64.tar.xz',
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.7-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.7-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.7-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/sed-4.7-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '4bc8cd82d8a73e9bdd02b7d9d2425b590494715898c458660dc57a1506840d1c',
armv7l: '4bc8cd82d8a73e9bdd02b7d9d2425b590494715898c458660dc57a1506840d1c',
i686: '5510f48c86412589e772014562e1ef4ef209af5997d209e1dade9134376f4493',
x86_64: 'dc73fea56d081f60f594eadc91808390ba997bb41de22f038cc022a7945cc117',
aarch64: '5d00ca35b334ed7bc07e7e123418384941ed6a694f4246584c9c921775d61eae',
armv7l: '5d00ca35b334ed7bc07e7e123418384941ed6a694f4246584c9c921775d61eae',
i686: 'c5c0b651dd7226dbd1ac4e6cf734c825e2ba92ec2efeddfac66bd160304438cf',
x86_64: '201529831d7b7d138bf29c6779b1377f2d1cddbf98b4f157c320fec078a11af5',
})
depends_on 'acl'
def self.build
system "./configure",
system './configure',
"--prefix=#{CREW_PREFIX}",
"--without-selinux"
'--without-selinux'
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
# Remove selinux tests since we're building without it.
system "sed -i 's,testsuite/inplace-selinux.sh ,,' Makefile"
system "make", "check"
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