blob: 0b1810ddd7b823f5924683846692db4aa208b1ac (
plain)
1 # Description: A port of 7-zip for POSIX systems.
2 # URL: http://p7zip.sourceforge.net/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: yasm
5
6 name=p7zip
7 version=16.02
8 release=3
9 source=(https://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version}_src_all.tar.bz2
10 CVE-2016-9296.patch
11 CVE-2017-17969.patch
12 CVE-2018-5996.patch
13 CPP_Windows_ErrorMsg.patch)
14
15 build() {
16 cd ${name}_$version
17
18 # https://nvd.nist.gov/vuln/detail/CVE-2016-9296
19 patch -p1 -i $SRC/CVE-2016-9296.patch
20
21 # https://nvd.nist.gov/vuln/detail/CVE-2017-17969
22 patch -p1 -i $SRC/CVE-2017-17969.patch
23
24 # https://nvd.nist.gov/vuln/detail/CVE-2018-5996
25 patch -p1 -i $SRC/CVE-2018-5996.patch
26
27 # fix build against gcc 10
28 patch -p0 -i $SRC/CPP_Windows_ErrorMsg.patch
29
30 sed -i 's/ -pipe / /g' makefile.*
31 cp makefile.linux_amd64_asm makefile.machine
32
33 make all3 OPTFLAGS="$CFLAGS"
34
35 make install \
36 DEST_DIR="$PKG" \
37 DEST_HOME=/usr \
38 DEST_MAN=/usr/share/man
39
40 rm -r $PKG/usr/share/doc
41 }
|