blob: bca83965b6b0a342d1762c2a42a9e43dc5107538 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# $Id: PKGBUILD 193540 2013-08-22 21:13:54Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
pkgname=libtiff
pkgver=4.0.3
pkgrel=3
pkgdesc="Library for manipulation of TIFF images"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.remotesensing.org/libtiff/"
license=('custom')
depends=('gcc-libs' 'libjpeg' 'zlib' 'xz')
makedepends=('freeglut' 'glu' 'mesa')
optdepends=('freeglut: for using tiffgt')
options=('!libtool')
source=(ftp://ftp.remotesensing.org/pub/libtiff/tiff-${pkgver}.tar.gz
tiff-3.9.7-CVE-2012-4447.patch
tiff-3.9.7-CVE-2012-4564.patch
tiff-4.0.3-CVE-2013-1960.patch
tiff-4.0.3-CVE-2013-1961.patch
tiff-4.0.3-libjpeg-turbo.patch
tiff-4.0.3-tiff2pdf-colors.patch
tiff-4.0.3-CVE-2013-4231.patch
tiff-4.0.3-CVE-2013-4232.patch)
sha1sums=('652e97b78f1444237a82cbcfe014310e776eb6f0'
'41be661638282dae0d07bd2788414cb6650f8981'
'6cb3d480908132335c05c769b5a51f951413725d'
'5903355afdd0bb27ea3746339e2196720f9fac9d'
'29a91870cca5d4cd9ca1c464f8074088eddc3fb8'
'02d57835df50d3f84587571ec52b36f5af838de2'
'23443ad0bc130d70860b6cc6d19b69584ae7a6cc'
'969f588e9da5991e7f17dddf69ae59424b05fa16'
'2a23c55d081bed74ac8dd99541a93d312cc72b64')
prepare() {
cd tiff-${pkgver}
patch -p0 -i "${srcdir}/tiff-4.0.3-tiff2pdf-colors.patch"
patch -p1 -i "${srcdir}/tiff-3.9.7-CVE-2012-4447.patch"
patch -p1 -i "${srcdir}/tiff-3.9.7-CVE-2012-4564.patch"
patch -p1 -i "${srcdir}/tiff-4.0.3-CVE-2013-1960.patch"
patch -p1 -i "${srcdir}/tiff-4.0.3-CVE-2013-1961.patch"
patch -p1 -i "${srcdir}/tiff-4.0.3-libjpeg-turbo.patch"
cd tools
patch -p0 -i "${srcdir}/tiff-4.0.3-CVE-2013-4231.patch"
patch -p0 -i "${srcdir}/tiff-4.0.3-CVE-2013-4232.patch"
}
build() {
cd tiff-${pkgver}
./configure --prefix=/usr
make
}
check() {
cd tiff-${pkgver}
make check
}
package() {
cd tiff-${pkgver}
make DESTDIR="${pkgdir}" install
install -D -m644 COPYRIGHT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|