summaryrefslogtreecommitdiff
path: root/unzip/Pkgfile
blob: eab832b1a7b312a51e905b773bb279c43384897f (plain)
    1 # Description: Decompress utility for zipfiles
    2 # URL: https://infozip.sourceforge.net/UnZip.html
    3 # Maintainer: CRUX System Team, core-ports at crux dot nu
    4 
    5 name=unzip
    6 version=6.0
    7 release=8
    8 source=(https://downloads.sourceforge.net/sourceforge/infozip/${name}${version//./}.tar.gz
    9   28-cve-2022-0529-and-cve-2022-0530.patch
   10   cumulative.patch)
   11 
   12 build() {
   13 	cd ${name}${version//./}
   14 	patch -Np1 -i $SRC/cumulative.patch
   15 	patch -p1 -F3 -i $SRC/28-cve-2022-0529-and-cve-2022-0530.patch
   16 
   17 	sed -i 's/-O3//' unix/configure
   18 	make -f unix/Makefile LOCAL_UNZIP="$CFLAGS" generic
   19 	make -f unix/Makefile prefix=$PKG/usr MANDIR=$PKG/usr/share/man/man1 install
   20 	ln -sf unzip $PKG/usr/bin/zipinfo
   21 }

Generated by cgit