# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=libheif pkgver=1.9.1 pkgrel=0 pkgdesc="ISO/IEC 23008-12:2017 HEIF file format decoder and encoder" url="https://www.libde265.org/" arch="all" license="LGPL-3.0-or-later" depends_dev="aom-dev x265-dev libde265-dev" makedepends="$depends_dev libjpeg-turbo-dev libpng-dev" options="!check" # no tests provided subpackages="$pkgname-dev $pkgname-tools $pkgname-doc" source="https://github.com/strukturag/libheif/releases/download/v$pkgver/libheif-$pkgver.tar.gz" # secfixes: # 1.5.0-r0: # - CVE-2019-11471 build() { # This is en/decoder, so performance matters more than size. export CPPFLAGS="${CFLAGS/-Os/-O2}" export CXXFLAGS="${CFLAGS/-Os/-O2}" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --disable-static make } package() { make DESTDIR="$pkgdir" install } tools() { pkgdesc="$pkgdesc (tools)" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } sha512sums="a41ff9666877904da095c72af743b56196c75ce90deaeb1998be7eba9729a62282827e7e916e2a067489cc78e558c55fbb6d70da6a5b5281f6d2efcccbe6dbbe libheif-1.9.1.tar.gz"