aboutsummaryrefslogtreecommitdiffstats
path: root/community/libraw/APKBUILD
blob: 203c402b14cf631c062731f8dc916779d0176844 (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: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libraw
pkgver=0.19.5
pkgrel=1
pkgdesc="Library for reading RAW files obtained from digital photo cameras"
url="https://www.libraw.org"
arch="all"
license="CDDL-1.0 OR LGPL-2.1-only"
subpackages="$pkgname-dev $pkgname-tools"
source="https://www.libraw.org/data/LibRaw-$pkgver.tar.gz
	CVE-2020-15503.patch
	"
builddir="$srcdir"/LibRaw-$pkgver

# secfixes:
#   0.19.5-r1:
#     - CVE-2020-15503
#   0.19.2-r0:
#     - CVE-2018-20363
#     - CVE-2018-20364
#     - CVE-2018-20365
#     - CVE-2018-5817
#     - CVE-2018-5818
#     - CVE-2018-5819
#   0.18.6-r0:
#     - CVE-2017-16910
#   0.18.5-r0:
#     - CVE-2017-13735
#     - CVE-2017-14265

build() {
	#export CXXFLAGS="$CXXFLAGS -std=gnu++98"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static
	#make lib/libraw.a lib/libraw_r.a
	make
}

package() {
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/doc/
}

tools() {
	pkgdesc="tools for LibRaw"

	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

sha512sums="4560045f75e6d2ab0d1d8686075f3a0e26a5d7ce693b48508110a2c31d19055d58983c24852da0abb64fa90db5e20f24b87aa7537ed04d958c38c8b265a7e826  LibRaw-0.19.5.tar.gz
5a2ac4434df206887b3971f945c2a33a38f1ce8d3224055c957be66f2d8c4f87fef93a57b248ce04b651c808cdedaab7913a26174424491c9ab9842fd563a770  CVE-2020-15503.patch"