aboutsummaryrefslogtreecommitdiffstats
path: root/main/tiff/APKBUILD
blob: 36fc58b1987e3586677346ef9563cb72090116e1 (plain) (blame)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tiff
pkgver=4.2.0
pkgrel=0
pkgdesc="Provides support for the Tag Image File Format or TIFF"
url="https://gitlab.com/libtiff/libtiff"
arch="all"
license="libtiff"
depends_dev="zlib-dev libjpeg-turbo-dev"
makedepends="libtool autoconf automake $depends_dev"
checkdepends="diffutils"
subpackages="$pkgname-doc $pkgname-dev $pkgname-tools libtiffxx:_libtiffxx"
source="https://gitlab.com/libtiff/libtiff/-/archive/v$pkgver/libtiff-v$pkgver.tar.gz
	CVE-2018-12900.patch
	"
builddir="$srcdir/libtiff-v$pkgver"

# secfixes:
#   4.1.0-r0:
#     - CVE-2019-6128
#   4.0.10-r2:
#     - CVE-2019-10927
#   4.0.10-r1:
#     - CVE-2019-14973
#   4.0.10-r0:
#     - CVE-2018-12900
#     - CVE-2018-18557
#     - CVE-2018-18661
#   4.0.9-r8:
#     - CVE-2018-10779
#     - CVE-2018-17100
#     - CVE-2018-17101
#   4.0.9-r6:
#     - CVE-2017-9935
#     - CVE-2017-11613
#     - CVE-2017-17095
#     - CVE-2018-10963
#   4.0.9-r5:
#     - CVE-2018-8905
#   4.0.9-r4:
#     - CVE-2018-7456
#   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
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--enable-cxx
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

_libtiffxx() {
	pkgdesc="C++ binding to libtiff"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/libtiffxx.so.* "$subpkgdir"/usr/lib/
}

tools() {
	pkgdesc="Command-line utility programs for manipulating TIFF files"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="d47578feffcc1ecdac2d188c1df4faf05865cd9075b4d01c708a0e71928cce3b60850738a6b7ace334ae00e96ccffc6189ed91b9be81840a1d2b040777010dd5  libtiff-v4.2.0.tar.gz
c321f1d4e5d334cdb3b0800299e8165055c040c0c030220769ccfdadcc7fd35a0f3231115f44dc86fe5e34f32eafe1074aa85495a744717f8fc10c0cab2ab085  CVE-2018-12900.patch"