# Contributor: Holger Jaekel # Maintainer: Holger Jaekel pkgname=charls pkgver=2.0.0 pkgrel=0 pkgdesc="An optimized implementation of the JPEG-LS standard for lossless and near-lossless image compression" url="https://github.com/team-charls/charls" arch="all" license="BSD-3-Clause" makedepends=" cmake " subpackages=" $pkgname-dev " source="$pkgname-$pkgver.tar.gz::https://github.com/team-charls/charls/archive/$pkgver.tar.gz" build() { cmake . \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_SHARED_LIBS=ON \ -DBUILD_TESTING=ON make } package() { make DESTDIR="$pkgdir" install } check() { # The testprogram requires "Press any key + 'enter' to exit program" echo "end\n" | ./charlstest -unittest } sha512sums="0a2862fad6d65b941c81f5f838db1fdc6a4625887281ddbf27e21be9084f607d27c8a27d246d6252e08358b2ed4aa0c2b7407048ca559fb40e94313ca72487dd charls-2.0.0.tar.gz"