42 lines
996 B
Plaintext
42 lines
996 B
Plaintext
# Description: A port of 7-zip for POSIX systems.
|
|
# URL: http://p7zip.sourceforge.net/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: yasm
|
|
|
|
name=p7zip
|
|
version=16.02
|
|
release=3
|
|
source=(https://downloads.sourceforge.net/project/$name/$name/$version/${name}_${version}_src_all.tar.bz2
|
|
CVE-2016-9296.patch
|
|
CVE-2017-17969.patch
|
|
CVE-2018-5996.patch
|
|
CPP_Windows_ErrorMsg.patch)
|
|
|
|
build() {
|
|
cd ${name}_$version
|
|
|
|
# https://nvd.nist.gov/vuln/detail/CVE-2016-9296
|
|
patch -p1 -i $SRC/CVE-2016-9296.patch
|
|
|
|
# https://nvd.nist.gov/vuln/detail/CVE-2017-17969
|
|
patch -p1 -i $SRC/CVE-2017-17969.patch
|
|
|
|
# https://nvd.nist.gov/vuln/detail/CVE-2018-5996
|
|
patch -p1 -i $SRC/CVE-2018-5996.patch
|
|
|
|
# fix build against gcc 10
|
|
patch -p0 -i $SRC/CPP_Windows_ErrorMsg.patch
|
|
|
|
sed -i 's/ -pipe / /g' makefile.*
|
|
cp makefile.linux_amd64_asm makefile.machine
|
|
|
|
make all3 OPTFLAGS="$CFLAGS"
|
|
|
|
make install \
|
|
DEST_DIR="$PKG" \
|
|
DEST_HOME=/usr \
|
|
DEST_MAN=/usr/share/man
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
}
|