APKBUILD 2.25 KB
Newer Older
Sergei Lukin's avatar
Sergei Lukin committed
1
# Contributor: Sergei Lukin <sergej.lukin@gmail.com>
Leonardo Arena's avatar
Leonardo Arena committed
2
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
3
4
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=tiff
5
6
pkgver=4.0.10
pkgrel=0
7
pkgdesc="Provides support for the Tag Image File Format or TIFF"
prspkt's avatar
prspkt committed
8
url="http://www.libtiff.org"
9
arch="all"
prspkt's avatar
prspkt committed
10
license="libtiff"
Natanael Copa's avatar
Natanael Copa committed
11
depends=
12
depends_dev="zlib-dev libjpeg-turbo-dev"
Natanael Copa's avatar
Natanael Copa committed
13
makedepends="libtool autoconf automake $depends_dev"
14
subpackages="$pkgname-doc $pkgname-dev $pkgname-tools libtiffxx:_libtiffxx"
Daniel Sabogal's avatar
Daniel Sabogal committed
15
builddir="$srcdir/$pkgname-$pkgver"
16
source="http://download.osgeo.org/libtiff/$pkgname-$pkgver.tar.gz
17
	CVE-2018-12900.patch
18
	"
19

Sergei Lukin's avatar
Sergei Lukin committed
20
# secfixes:
21
22
23
24
#   4.0.10-r0:
#     - CVE-2018-12900
#     - CVE-2018-18557
#     - CVE-2018-18661
Leonardo Arena's avatar
Leonardo Arena committed
25
26
27
28
#   4.0.9-r8:
#     - CVE-2018-10779
#     - CVE-2018-17100
#     - CVE-2018-17101
29
30
31
32
33
#   4.0.9-r6:
#     - CVE-2017-9935
#     - CVE-2017-11613
#     - CVE-2017-17095
#     - CVE-2018-10963
prspkt's avatar
prspkt committed
34
35
#   4.0.9-r5:
#     - CVE-2018-8905
prspkt's avatar
prspkt committed
36
37
#   4.0.9-r4:
#     - CVE-2018-7456
prspkt's avatar
prspkt committed
38
39
#   4.0.9-r2:
#     - CVE-2018-5784
40
41
#   4.0.9-r1:
#     - CVE-2017-18013
42
43
44
#   4.0.9-r0:
#     - CVE-2017-16231
#     - CVE-2017-16232
45
46
47
#   4.0.8-r1:
#     - CVE-2017-9936
#     - CVE-2017-10688
48
#   4.0.7-r2:
49
50
51
52
53
54
55
56
#     - CVE-2017-7592
#     - CVE-2017-7593
#     - CVE-2017-7594
#     - CVE-2017-7595
#     - CVE-2017-7596
#     - CVE-2017-7598
#     - CVE-2017-7601
#     - CVE-2017-7602
Sergei Lukin's avatar
Sergei Lukin committed
57
58
59
#   4.0.7-r1:
#     - CVE-2017-5225

Natanael Copa's avatar
Natanael Copa committed
60
build() {
Sergei Lukin's avatar
Sergei Lukin committed
61
	cd "$builddir"
62
63
64
65
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
66
67
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
68
69
		--infodir=/usr/share/info \
		--enable-cxx
Daniel Sabogal's avatar
Daniel Sabogal committed
70
71
72
73
74
75
	make
}

check() {
	cd "$builddir"
	make check
Natanael Copa's avatar
Natanael Copa committed
76
77
78
}

package() {
Sergei Lukin's avatar
Sergei Lukin committed
79
	cd "$builddir"
80
	make DESTDIR="$pkgdir" install
Natanael Copa's avatar
Natanael Copa committed
81
}
82

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

Natanael Copa's avatar
Natanael Copa committed
89
90
91
92
tools() {
	pkgdesc="Command-line utility programs for manipulating TIFF files"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
93
94
}

95
96
sha512sums="d213e5db09fd56b8977b187c5a756f60d6e3e998be172550c2892dbdb4b2a8e8c750202bc863fe27d0d1c577ab9de1710d15e9f6ed665aadbfd857525a81eea8  tiff-4.0.10.tar.gz
c321f1d4e5d334cdb3b0800299e8165055c040c0c030220769ccfdadcc7fd35a0f3231115f44dc86fe5e34f32eafe1074aa85495a744717f8fc10c0cab2ab085  CVE-2018-12900.patch"