void-packages/srcpkgs/p7zip/template
Christian Neukirchen 8c1c058949 p7zip: update to 15.09.
Also patch CVE-2015-1038 (+ musl fix).
2016-02-14 16:51:27 +01:00

34 lines
1.1 KiB
Bash

# Template file for 'p7zip'
pkgname=p7zip
version=15.09
wrksrc=${pkgname}_${version}
revision=1
patch_args="-Np1"
hostmakedepends="yasm nasm"
short_desc="Command-line version of the 7zip compressed file archive"
homepage="http://p7zip.sourceforge.net/"
license="LGPL-2.1, unrar"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}_${version}_src_all.tar.bz2"
checksum=8783acf747e210e00150f7311cc06c4cd8ecf7b0c27b4adf2194284cc49b4d6f
do_configure() {
case "$XBPS_TARGET_MACHINE" in
i686*) cp makefile.linux_x86_asm_gcc_4.X makefile.machine;;
x86_64*) cp makefile.linux_amd64_asm makefile.machine;;
*) cp makefile.linux_any_cpu_gcc_4.X makefile.machine;;
esac
sed -e 's,-s ,,' -i makefile.machine
sed -e "s,g++,${CXX}," -i makefile.machine
sed -e "s,gcc,${CC}," -i makefile.machine
}
do_build() {
make all3 OPTFLAGS="$CXXFLAGS" ${makejobs}
}
do_install() {
make install DEST_DIR="${DESTDIR}" DEST_HOME="/usr" \
DEST_MAN="/usr/share/man" \
DEST_SHARE_DOC="/usr/share/doc/${pkgname}"
find ${DESTDIR}/usr/share/doc/$pkgname -type d -exec chmod 755 {} \;
vlicense DOC/License.txt
}