# Contributor: Sergei Lukin # Contributor: Leonardo Arena # Maintainer: Michael Mason pkgname=tiff pkgver=4.0.9 pkgrel=0 pkgdesc="Provides support for the Tag Image File Format or TIFF" url="http://www.libtiff.org/" arch="all" license="GPL" depends= depends_dev="zlib-dev libjpeg-turbo-dev" makedepends="libtool autoconf automake $depends_dev" subpackages="$pkgname-doc $pkgname-dev $pkgname-tools" source="http://download.osgeo.org/libtiff/$pkgname-$pkgver.tar.gz " # secfixes: # 4.0.9-r0: # - CVE-2017-16231 # - CVE-2017-16232 # 4.0.8-r0: # - 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 # 4.0.7-r0: # - CVE-2016-9273 # - CVE-2016-9297 # - CVE-2016-9448 # - CVE-2016-9453 # - CVE-2016-3186 # - CVE-2016-3621 # - CVE-2016-3622 # - CVE-2016-3623 # - CVE-2016-3624 # - CVE-2016-3625 # - CVE-2016-3658 # - CVE-2014-8127 # - CVE-2016-5314 # - CVE-2016-5315 # - CVE-2016-5316 # - CVE-2016-5317 # - CVE-2016-5320 # - CVE-2016-5875 # - CVE-2016-5321 # - CVE-2016-5323 # - CVE-2016-5652 builddir="$srcdir"/$pkgname-$pkgver prepare() { local _failed= cd "$builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || _failed="$_failed $i";; esac done } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-cxx \ || return 1 make || return 1 } 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/ } md5sums="54bad211279cc93eb4fca31ba9bfdc79 tiff-4.0.9.tar.gz" sha256sums="6e7bdeec2c310734e734d19aae3a71ebe37a4d842e0e23dbb1b8921c0026cfcd tiff-4.0.9.tar.gz" sha512sums="04f3d5eefccf9c1a0393659fe27f3dddd31108c401ba0dc587bca152a1c1f6bc844ba41622ff5572da8cc278593eff8c402b44e7af0a0090e91d326c2d79f6cd tiff-4.0.9.tar.gz"