Commit de2c73a6 authored by satmandu's avatar satmandu Committed by GitHub

Coreutils 8.32 (#4927)

* coreutils -> 8.32

* update arch script logic
parent d84a2be9
...@@ -3,36 +3,37 @@ require 'package' ...@@ -3,36 +3,37 @@ 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.29' @_ver = '8.32'
version @_ver
compatibility 'all' compatibility 'all'
source_url 'https://ftpmirror.gnu.org/gnu/coreutils/coreutils-8.29.tar.xz' source_url "https://ftpmirror.gnu.org/gnu/coreutils/coreutils-#{@_ver}.tar.xz"
source_sha256 '92d0fa1c311cacefa89853bdb53c62f4110cdfda3820346b59cbd098f40f955e' source_sha256 '4458d8de7849df44ccab15e16b1548b285224dbba5f08fac070c1c0e0bcc4cfa'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.29-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.32-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.29-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.32-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.29-chromeos-i686.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.32-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.29-chromeos-x86_64.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/coreutils-8.32-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: 'cc4f7ac351c1de16e6dd195c795b3505f05fc981bae46d0ab7cfbc7009ee920d', aarch64: 'a1be275b2b5f26c724b73550c30a5e2e58c9267c2af853e660293d4e33138453',
armv7l: 'cc4f7ac351c1de16e6dd195c795b3505f05fc981bae46d0ab7cfbc7009ee920d', armv7l: 'a1be275b2b5f26c724b73550c30a5e2e58c9267c2af853e660293d4e33138453',
i686: 'c55c8f37354f348741f387fe0de01f664dfe20ad89e8ae93b27d66553375add9', i686: 'b45b19f985acb4429d6c0be54c8a60171afeac88c21cdac0434ab19475f815b3',
x86_64: '26c43836ce9581f9daeddc1b50f88a88d5c1f8417cd545ee417729f94ad59621', x86_64: '1384d230561d78c1f87037a1422dfe04a4823bbbe5348370a319eb6c08e852a1',
}) })
def self.build def self.build
system "./configure --prefix=#{CREW_PREFIX}" system "env CFLAGS='-flto' ./configure #{CREW_OPTIONS}"
system 'make' system 'make'
end end
def self.install def self.install
system "mkdir -p #{CREW_DEST_PREFIX}/bin" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do system "cat <<'EOF'> #{CREW_DEST_PREFIX}/bin/arch
system "echo '#!/bin/bash' > arch" #!/bin/bash
system "echo '#{CREW_PREFIX}/bin/uname -m' >> arch" echo \"#{ARCH}\"
system 'chmod +x arch' EOF"
end system "chmod +x #{CREW_DEST_PREFIX}/bin/arch"
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