# Contributor: Sergei Lukin # Contributor: Leonardo Arena # Maintainer: Michael Mason pkgname=tiff pkgver=4.0.9 pkgrel=3 pkgdesc="Provides support for the Tag Image File Format or TIFF" url="http://www.libtiff.org" arch="all" license="libtiff" depends= depends_dev="zlib-dev libjpeg-turbo-dev" makedepends="libtool autoconf automake $depends_dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-tools" builddir="$srcdir/$pkgname-$pkgver" source="http://download.osgeo.org/libtiff/$pkgname-$pkgver.tar.gz CVE-2017-18013.patch CVE-2018-5784.patch " # secfixes: # 4.0.9-r2: # - CVE-2018-5784 # 4.0.9-r1: # - CVE-2017-18013 # 4.0.9-r0: # - CVE-2017-16231 # - CVE-2017-16232 # 4.0.8-r1: # - CVE-2017-9936 # - CVE-2017-10688 # 4.0.7-r2: # - CVE-2017-7592 # - CVE-2017-7593 # - CVE-2017-7594 # - CVE-2017-7595 # - CVE-2017-7596 # - CVE-2017-7598 # - CVE-2017-7601 # - CVE-2017-7602 # 4.0.7-r1: # - CVE-2017-5225 prepare() { default_prepare update_config_sub } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-cxx make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } tools() { pkgdesc="Command-line utility programs for manipulating TIFF files" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="04f3d5eefccf9c1a0393659fe27f3dddd31108c401ba0dc587bca152a1c1f6bc844ba41622ff5572da8cc278593eff8c402b44e7af0a0090e91d326c2d79f6cd tiff-4.0.9.tar.gz 3a31e4315ecc5c5bf709e2ca0fefb5bc7ff50c79f911b8b8366be38d007d3f79e89982700a620b2d82739313fbd79041428dbf3ecf0a790c9ec3bc2e211d6fce CVE-2017-18013.patch c9cb1f712241c5bbd01910d4f4becf50ba8498bb04393f45451af4ace948b6a41b3d887adc9fbce1a53edeb0aeba03868f4d31428f3c5813ed14bb4b6f4c0f96 CVE-2018-5784.patch"