void-packages/srcpkgs/tiff/template
Helmut Pozimski 487b256c7e tiff: add patches for multiple CVEs
patches taken from the inofficial git mirror of the upstream repository
vadz/libtiff on github. Revisions:

4d4fa0b68ae9ae038959ee4f69ebe288ec892f06
fe8d7165956b88df4837034a9161dc5fd20cf67a
6173a57d39e04d68b139f8c1aa499a24dbe74ba1

Fixes CVE-2016-10095, CVE-2017-9147, CVE-2017-9936 and CVE-2017-9936.

Closes: #6973 [via git-merge-pr]
2017-07-06 13:16:34 +02:00

37 lines
977 B
Bash

# Template build file for 'tiff'.
pkgname=tiff
version=4.0.8
revision=2
build_style=gnu-configure
configure_args="--enable-cxx --without-x"
hostmakedepends="automake libtool"
makedepends="zlib-devel libjpeg-turbo-devel liblzma-devel"
short_desc="Library and tools for reading and writing TIFF data files"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="BSD"
homepage="http://libtiff.maptools.org/"
distfiles="http://download.osgeo.org/libtiff/tiff-${version}.tar.gz"
checksum=59d7a5a8ccd92059913f246877db95a2918e6c04fb9d43fd74e5c3390dac2910
pre_configure() {
autoreconf -fi
}
post_install() {
for f in ${DESTDIR}/usr/share/man/man3/*.3tiff; do
mv ${f} ${f%tiff}
done
vlicense COPYRIGHT
}
tiff-devel_package() {
depends="${makedepends} tiff>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/man/man3
vmove usr/share/doc
}
}