Commit fb9f169a authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #1587 from uberhacker/update-unzip-package

Update unzip package to fix patch issue and compress man pages
parents b9b84b57 f2f56794
...@@ -3,24 +3,17 @@ require 'package' ...@@ -3,24 +3,17 @@ require 'package'
class Unzip < Package class Unzip < Package
description 'UnZip is an extraction utility for archives compressed in .zip format (also called \'zipfiles\').' description 'UnZip is an extraction utility for archives compressed in .zip format (also called \'zipfiles\').'
homepage 'http://www.info-zip.org/UnZip.html' homepage 'http://www.info-zip.org/UnZip.html'
version '1.6_1' version '1.6_1-1'
source_url 'https://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz' source_url 'https://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz'
source_sha256 '036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37' source_sha256 '036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/unzip-1.6_1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/unzip-1.6_1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/unzip-1.6_1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/unzip-1.6_1-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '908e42c861f246a9d3bebf166ef66f771372414d569c2d38cafb8d6feb6c92dc',
armv7l: '908e42c861f246a9d3bebf166ef66f771372414d569c2d38cafb8d6feb6c92dc',
i686: 'f03a2abf53121c4f46e3e71d12d0ea8956bc7dec73b57586033d8e9b2b55e547',
x86_64: '92fcd85aac88f039375e98386b47a916a739c744f21808f2a037011eca82e700',
}) })
depends_on 'patch' depends_on 'compressdoc' => :build
depends_on 'patch' => :build
# adapted from the homebrew recipe as seen at: https://github.com/Homebrew/homebrew-dupes/blob/master/unzip.rb # adapted from the homebrew recipe as seen at: https://github.com/Homebrew/homebrew-dupes/blob/master/unzip.rb
# Upstream is unmaintained so we use the Ubuntu unzip-6.0-20ubuntu1 patchset: # Upstream is unmaintained so we use the Ubuntu unzip-6.0-20ubuntu1 patchset:
...@@ -37,7 +30,6 @@ class Unzip < Package ...@@ -37,7 +30,6 @@ class Unzip < Package
end end
def self.build def self.build
self.patch
if ARCH == "armv7l" if ARCH == "armv7l"
system "make -f unix/Makefile linux_noasm" system "make -f unix/Makefile linux_noasm"
else else
...@@ -46,7 +38,8 @@ class Unzip < Package ...@@ -46,7 +38,8 @@ class Unzip < Package
end end
def self.install def self.install
system "make", "BINDIR=#{CREW_DEST_DIR}#{CREW_PREFIX}/bin", "MANDIR=#{CREW_DEST_DIR}#{CREW_PREFIX}/share/man", "-f", "unix/Makefile", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "BINDIR=#{CREW_DEST_PREFIX}/bin", "MANDIR=#{CREW_DEST_PREFIX}/share/man/man1", "-f", "unix/Makefile", "install"
system "compressdoc --gzip -9 #{CREW_DEST_PREFIX}/share/man/man1"
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