contrib/p7zip/Pkgfile

42 lines
996 B
Plaintext
Raw Normal View History

2012-01-09 02:53:00 +01:00
# Description: A port of 7-zip for POSIX systems.
# URL: http://p7zip.sourceforge.net/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2016-08-10 13:16:53 +02:00
# Depends on: yasm
2012-01-09 02:53:00 +01:00
name=p7zip
2016-08-10 13:16:53 +02:00
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)
2012-01-09 02:53:00 +01:00
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.*
2016-08-10 13:16:53 +02:00
cp makefile.linux_amd64_asm makefile.machine
2012-01-09 02:53:00 +01:00
2016-08-10 13:16:53 +02:00
make all3 OPTFLAGS="$CFLAGS"
2012-01-09 02:53:00 +01:00
2016-08-10 13:16:53 +02:00
make install \
DEST_DIR="$PKG" \
DEST_HOME=/usr \
DEST_MAN=/usr/share/man
2012-01-09 02:53:00 +01:00
2016-08-10 13:16:53 +02:00
rm -r $PKG/usr/share/doc
2012-01-09 02:53:00 +01:00
}