summaryrefslogtreecommitdiff
path: root/user/libexif/APKBUILD
blob: 320b874921e238e1b3ead62f3173076f53dc2349 (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
# Maintainer: 
pkgname=libexif
pkgver=0.6.22
_pkgver=$(printf '%s' "$pkgver" | tr . _)
pkgrel=0
pkgdesc="Library to parse EXIF metadata"
url="https://libexif.github.io/"
arch="all"
license="LGPL-2.0+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends=""
makedepends=""
source="https://github.com/libexif/libexif/releases/download/libexif-$_pkgver-release/libexif-$pkgver.tar.xz
	CVE-2020-0198.patch
	"

# secfixes:
#   0.6.21-r3:
#     - CVE-2017-7544
#     - CVE-2018-20030
#   0.6.21-r4:
#     - CVE-2016-6328
#     - CVE-2019-9278
#   0.6.22-r0:
#     - CVE-2020-0093
#     - CVE-2020-0182
#     - CVE-2020-0198
#     - CVE-2020-12767
#     - CVE-2020-13112
#     - CVE-2020-13113
#     - CVE-2020-13114

prepare() {
	default_prepare
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

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

sha512sums="0a9e7bf0258ed98a794b667d45e8fc65299101a2a2d2e39c358715b20b003beff258782f0736cd5b53978428a2f878a989f303bee249a978850a065f33c534af  libexif-0.6.22.tar.xz
7df084f9acdc09bd05fadfb66332956d8587fcaac9d693000f47fadeba17b3c49eafa402d1e2c9b7d394e697feccd1f760bab8b64378deaea1777c5a3b90c3b2  CVE-2020-0198.patch"