aboutsummaryrefslogtreecommitdiffstats
path: root/testing/charls/APKBUILD
blob: 9ce25d5d3bde60e0758349f8991c4ec17caf60f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=charls
pkgver=2.4.2
pkgrel=0
pkgdesc="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 samurai"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/team-charls/charls/archive/$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

check() {
	# The testprogram requires "Press any key + 'enter' to exit program"
	echo "end\n" | ./build/test/charlstest -unittest
}

sha512sums="
4f1b587f008956ab6fb9d2473c37a7b1a842633113245be7f8bb29b8c64304a6d580a29fcfca97ba1ac75adedbaf89e29adc4ac9e4117e1af1aa5949dbd34df9  charls-2.4.2.tar.gz
"