Files
chromebrew/packages/zip.rb
chromebrew-actions[bot] 38439537ab gparted -> 1.8.1 in updater-gparted-1.8.1 — gparted: 1.8.0 → 1.8.1 (#15055)
* gparted -> 1.8.1 in updater-gparted-1.8.1

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* updater-gparted-1.8.1: Package File Update Run on linux/arm/v7 container.

* updater-gparted-1.8.1: Package File Update Run on linux/amd64 container.

* Cleanup gparted.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Update dependencies to use :executable instead of :executable_only

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2026-03-19 00:13:29 +00:00

41 lines
1.7 KiB
Ruby

require 'package'
class Zip < Package
description 'Zip is a compression and file packaging/archive utility for archives compressed in .zip format (also called \'zipfiles\').'
homepage 'http://www.info-zip.org/Zip.html'
version '3.0-15'
license 'Info-ZIP'
compatibility 'all'
source_url 'https://downloads.sourceforge.net/project/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz'
source_sha256 'f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '37f4831a8d4833374557f9501987305a8c1f021c11b96586bc2f0042ff637805',
armv7l: '37f4831a8d4833374557f9501987305a8c1f021c11b96586bc2f0042ff637805',
i686: '2769c0ca885a8ca686ade489f01f5d0004d1d13a0e1f7a284137c5067d54f7e1',
x86_64: '1f92ba515b9d847196d1f1434a5b418b2e86d2c9205f13b4b925764276e557a6'
})
depends_on 'bzip2' # R
depends_on 'glibc' => :executable
# adapted from the homebrew recipe as seen at: https://github.com/Homebrew/homebrew-core/blob/master/Formula/zip.rb
# Upstream is unmaintained so we use the Debian patchset:
# https://packages.debian.org/sid/zip
def self.patch
downloader "https://mirrors.ocf.berkeley.edu/debian/pool/main/z/zip/zip_#{version}.debian.tar.xz", '6dc1711c67640e8d1dee867ff53e84387ddb980c40885bd088ac98c330bffce9'
system('tar', '-xf', "zip_#{version}.debian.tar.xz")
system('for i in `cat debian/patches/series`; do patch -p 1 < debian/patches/$i; done')
end
def self.build
system 'make -f unix/Makefile generic'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", "BINDIR=#{CREW_DEST_PREFIX}/bin", "MANDIR=#{CREW_DEST_MAN_PREFIX}/man1", '-f', 'unix/Makefile', 'install'
end
end