# Maintainer: Natanael Copa pkgname=libraw pkgver=0.21.1 pkgrel=2 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" makedepends="lcms2-dev" subpackages="$pkgname-dev $pkgname-tools" source="https://www.libraw.org/data/LibRaw-$pkgver.tar.gz CVE-2023-1729.patch " builddir="$srcdir"/LibRaw-$pkgver options="!check" # no tests # secfixes: # 0.21.1-r2: # - CVE-2023-1729 # 0.20.0-r0: # - CVE-2020-24890 # - CVE-2020-24899 # - CVE-2020-35530 # - CVE-2020-35531 # - CVE-2020-35532 # - CVE-2020-35533 # - CVE-2020-35534 # - CVE-2020-35535 # 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() { # trading size for more speed CFLAGS="$CFLAGS -O3 -flto=auto" \ CXXFLAGS="$CXXFLAGS -O3 -flto=auto" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --enable-openmp make } package() { make DESTDIR="$pkgdir" install rm -rf "$pkgdir"/usr/share/doc/ } tools() { pkgdesc="tools for LibRaw" amove usr/bin } sha512sums=" 8d11df0be2af5fd8a8251f150ccd59103319606f52effff541ee43e97ceb64f1a00a02bba7b730aedd0c1c705c1e465793c8a2a52769712c1102af7f5534dd5d LibRaw-0.21.1.tar.gz 291f22c501bea2d82ec0f7cc387cae7c5a4ba23ba553f1c94966c03d2a7e2d2859b888ec1b8b5bc90bcdd777dede1974be97fa4050d2ca21ad39b91c29440268 CVE-2023-1729.patch "