aboutsummaryrefslogtreecommitdiffstats
path: root/main/tiff/APKBUILD
blob: 4b348465184ebfa8618f1a526cc1dc69d79805d1 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tiff
pkgver=3.8.2
pkgrel=1
pkgdesc="Provides support for the Tag Image File Format or TIFF"
url="http://www.libtiff.org/"
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
	"

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

	./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"