Commit 6e03e911 authored by Casey Strouse's avatar Casey Strouse Committed by GitHub

Merge pull request #1322 from uberhacker/update-coreutils-package

Update coreutils from 8.27 to 8.28
parents d356f393 b2f5c53b
...@@ -3,29 +3,27 @@ require 'package' ...@@ -3,29 +3,27 @@ require 'package'
class Coreutils < Package class Coreutils < Package
description 'The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system.' description 'The GNU Core Utilities are the basic file, shell and text manipulation utilities of the GNU operating system.'
homepage 'http://www.gnu.org/software/coreutils/coreutils.html' homepage 'http://www.gnu.org/software/coreutils/coreutils.html'
version '8.27' version '8.28'
source_url 'https://ftpmirror.gnu.org/coreutils/coreutils-8.27.tar.xz' source_url 'https://ftp.gnu.org/gnu/coreutils/coreutils-8.28.tar.xz'
source_sha256 '8891d349ee87b9ff7870f52b6d9312a9db672d2439d289bc57084771ca21656b' source_sha256 '1117b1a16039ddd84d51a9923948307cfa28c2cea03d1a2438742253df0a0c65'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.27-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.27-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.27-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.27-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '150a40838d94d5d53fd2b1596802147a2ec8e9cdb18c7771aa4b8b22bc3c7312',
armv7l: '150a40838d94d5d53fd2b1596802147a2ec8e9cdb18c7771aa4b8b22bc3c7312',
i686: 'cdfa9a67beecc2f9c8e62ed096af27c0a7f780e829786421d8a93d8c1e315cdc',
x86_64: '5dee72c39c02c6039406f011394f499dcd91bcced4b62c4ea0fa155d12bab9b3',
}) })
def self.build def self.build
system './configure' system "./configure --prefix=#{CREW_PREFIX}"
system 'make' system 'make'
end end
def self.install def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do
system "echo '#!/bin/bash' > arch"
system "echo '#{CREW_PREFIX}/bin/uname -m' >> arch"
system 'chmod +x arch'
end
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end end
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