# Contributor: Sergei Lukin # Maintainer: Natanael Copa pkgname=lcms2 pkgver=2.15 pkgrel=4 pkgdesc="Color Management Engine" url="https://www.littlecms.com" arch="all" license="MIT" depends_dev=" $pkgname-plugins=$pkgver-r$pkgrel libjpeg-turbo-dev tiff-dev zlib-dev " makedepends="$depends_dev meson" subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-utils $pkgname-plugins" source="https://github.com/mm2/Little-CMS/releases/download/lcms$pkgver/lcms2-$pkgver.tar.gz bigendian.patch " # secfixes: # 2.9-r1: # - CVE-2018-16435 # 2.8-r1: # - CVE-2016-10165 build() { abuild-meson \ --default-library=both \ -Dfastfloat=true \ -Dthreaded=true \ -Djpeg=enabled \ -Dtiff=enabled \ . output meson compile -C output } check() { meson test -t4 --no-rebuild -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } utils() { pkgdesc="Utility applications for lcms2" amove usr/bin } plugins() { pkgdesc="$pkgdesc (threaded + fast_float plugins)" license="GPL-3.0-or-later" amove usr/lib/liblcms2_*.so } sha512sums=" ab038c369e66736e0dd3810fbac6cf5381bc3102c4dd693819367b1224f59d9e853ede081388464c0e7c213d92e6cddc48c23020953af10ad6c6802cfa17e213 lcms2-2.15.tar.gz 43c00483efd1d6c10c7ffc484b299ab9168dc65389f4c9eee9f6724172afea5f82881acee8c384ac04ced4613c6f82c3e880233ff3b35b40fb36271676275d01 bigendian.patch "