The Zip package contains
Zip utilities. These are useful
for compressing files into ZIP
archives.
This package is known to build and work properly using an LFS 12.2 platform.
Download (HTTP): https://downloads.sourceforge.net/infozip/zip30.tar.gz
Download MD5 sum: 7b74551e63f8ee6aab6fbc86676c0d37
Download size: 1.1 MB
Estimated disk space required: 6.4 MB
Estimated build time: 0.1 SBU
Install Zip by running the following commands:
make -f unix/Makefile generic CC="gcc -std=gnu89"
This package does not come with a test suite.
Now, as the root
user:
make prefix=/usr MANDIR=/usr/share/man/man1 -f unix/Makefile install
CC="gcc -std=gnu89"
: This
parameter overrides the CC
variable
that is set to cc in
the unix/Makefile
file. On LFS
cc is a symlink to
gcc, and it uses
-std=gnu17
(ISO 9899:2017 with GNU
extensions) as the default but Zip is a “legacy” package where
some grammar constructs are invalid in ISO 9899:1999 and newer
standards.
prefix=/usr
: This parameter
overrides the prefix
variable that is
set to /usr/local
in the unix/Makefile
file.