opt/unzip/Pkgfile

22 lines
683 B
Plaintext
Raw Normal View History

2015-08-04 12:32:48 +02:00
# Description: Decompress utility for zipfiles
2022-11-14 18:25:07 +01:00
# URL: https://infozip.sourceforge.net/UnZip.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
2015-08-04 12:32:48 +02:00
name=unzip
version=6.0
2022-11-14 18:25:07 +01:00
release=8
source=(https://downloads.sourceforge.net/sourceforge/infozip/${name}${version//./}.tar.gz
28-cve-2022-0529-and-cve-2022-0530.patch
cumulative.patch)
2015-08-04 12:32:48 +02:00
build() {
2021-12-14 10:46:14 +01:00
cd ${name}${version//./}
2022-11-14 18:25:07 +01:00
patch -Np1 -i $SRC/cumulative.patch
patch -p1 -F3 -i $SRC/28-cve-2022-0529-and-cve-2022-0530.patch
2015-08-04 12:32:48 +02:00
2021-12-14 10:46:14 +01:00
sed -i 's/-O3//' unix/configure
make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" generic
make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
ln -sf unzip $PKG/usr/bin/zipinfo
2015-08-04 12:32:48 +02:00
}