summaryrefslogtreecommitdiff
path: root/user/libexif/APKBUILD
blob: 8dd3ff715cbf64c40c6438e67f15a0dbaf151a58 (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
# 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"

# 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-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"