# Maintainer: Natanael Copa pkgname=libraw pkgver=0.19.3 pkgrel=0 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" builddir="$srcdir"/LibRaw-$pkgver # secfixes: # 0.19.2-r0: # - CVE-2018-20363 # - CVE-2018-20364 # - CVE-2018-20365 # 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="e025695fb7f0016aeec76c0843a94387633457eee838cc48e65d1e84e703c8530b3fdd1e31d85dc322d3f2f6092b7c313fa6d1c3009fe1257c3d9411128b6fe2 LibRaw-0.19.3.tar.gz"