# Contributor: Sheila Aman # Maintainer: Natanael Copa pkgname=libwebp pkgver=1.4.0 pkgrel=0 pkgdesc="Libraries for working with WebP images" url="https://developers.google.com/speed/webp" arch="all" license="BSD-3-Clause" makedepends="giflib-dev libjpeg-turbo-dev libpng-dev" subpackages=" $pkgname-static $pkgname-dev $pkgname-doc $pkgname-tools libsharpyuv:_lib libwebpdecoder:_lib libwebpdemux:_lib libwebpmux:_lib " source="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$pkgver.tar.gz" # secfixes: # 1.3.1-r1: # - CVE-2023-4863 # 1.3.0-r3: # - CVE-2023-1999 build() { CFLAGS="$CFLAGS -O2 -flto=auto -ffat-lto-objects" \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-libwebpmux \ --enable-libwebpdemux \ --enable-libwebpdecoder \ --disable-tiff # dependency-loop make } check() { make check } package() { make DESTDIR="$pkgdir" install mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -Dm644 PATENTS README.md "$pkgdir"/usr/share/doc/$pkgname } tools() { pkgdesc="The WebP command line tools" amove usr/bin } _lib() { pkgdesc="$pkgdesc ($subpkgname library)" amove usr/lib/$subpkgname.so.* } sha512sums=" 1217363fbb5c860b17c2ba4612f240f121c74ced6e3e58e8aa61252a9022f59893c5874bfa433cc50a7e65bac1ae2bfa99fa2cede070183b7a467f148cebb0bd libwebp-1.4.0.tar.gz "