# Contributor: Leonardo Arena # Maintainer: Michael Mason pkgname=tiff pkgver=3.8.2 pkgrel=4 pkgdesc="Provides support for the Tag Image File Format or TIFF" url="http://www.libtiff.org/" arch="all" license="GPL" depends= subpackages="$pkgname-doc $pkgname-dev" source="ftp://ftp.remotesensing.org/pub/lib$pkgname/$pkgname-$pkgver.tar.gz CVE-2006-3459-3465.patch libtiff-CVE-2009-2285.patch tiff-3.8.2-CVE-2008-2327.patch tiff-3.8.2-CVE-2009-2347.patch tiff2pdf-compression.patch tiff2pdf-octal-printf.patch tiffsplit-fname-overflow.patch tiff-jpegfix.patch " build() { cd "$srcdir/$pkgname-$pkgver" patch -p1 < ../tiff2pdf-octal-printf.patch || return 1 patch -p1 < ../tiffsplit-fname-overflow.patch || return 1 patch -p1 < ../CVE-2006-3459-3465.patch || return 1 patch -p1 < ../tiff2pdf-compression.patch || return 1 patch -p1 < ../tiff-3.8.2-CVE-2008-2327.patch || return 1 patch -p1 < ../libtiff-CVE-2009-2285.patch || return 1 patch -p1 < ../tiff-3.8.2-CVE-2009-2347.patch || return 1 patch -p1 < ../tiff-jpegfix.patch || return 1 ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-cxx make || return 1 make DESTDIR="$pkgdir" install } md5sums="fbb6f446ea4ed18955e2714934e5b698 tiff-3.8.2.tar.gz 624d3067e6a4c0680767eb62253ea980 CVE-2006-3459-3465.patch ff61077408727a82281f77a94f555e2a libtiff-CVE-2009-2285.patch c2c2e22557d9c63011df5777dda6a86b tiff-3.8.2-CVE-2008-2327.patch d3b02693cca83e63005b162edd43016b tiff-3.8.2-CVE-2009-2347.patch b443ffca9d498bb3a88c17da0200025b tiff2pdf-compression.patch d54368687d2645ffbbe6c2df384b11bf tiff2pdf-octal-printf.patch 323352fd60a7bd3ffac8724c3c031669 tiffsplit-fname-overflow.patch 3353687eba89179f55f027bd571a63f5 tiff-jpegfix.patch"