blob: fefb67705c77925ee2a6dad72ab4915f057f218b (
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=2
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
14 build() {
15 cd ${name}_$version
16
17 # https://nvd.nist.gov/vuln/detail/CVE-2016-9296
18 patch -p1 -i $SRC/CVE-2016-9296.patch
19
20 # https://nvd.nist.gov/vuln/detail/CVE-2017-17969
21 patch -p1 -i $SRC/CVE-2017-17969.patch
22
23 # https://nvd.nist.gov/vuln/detail/CVE-2018-5996
24 patch -p1 -i $SRC/CVE-2018-5996.patch
25
26 cp makefile.linux_amd64_asm makefile.machine
27
28 make all3 OPTFLAGS="$CFLAGS"
29
30 make install \
31 DEST_DIR="$PKG" \
32 DEST_HOME=/usr \
33 DEST_MAN=/usr/share/man
34
35 rm -r $PKG/usr/share/doc
36 }
|