aboutsummaryrefslogtreecommitdiffstats
path: root/community/charls/APKBUILD
blob: b49d2de858812f77ca05bbb0081b92b65668f958 (plain) (blame)
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
35
# Contributor: Holger Jaekel <holger.jaekel@gmx.de>
# Maintainer: Holger Jaekel <holger.jaekel@gmx.de>
pkgname=charls
pkgver=2.2.0
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
	"
subpackages="
	$pkgname-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/team-charls/charls/archive/$pkgver.tar.gz"

build() {
	cmake . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=ON
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	# The testprogram requires "Press any key + 'enter' to exit program"
	echo "end\n" | ./test/charlstest -unittest
}
sha512sums="387293f89bc30b50a59de7d5af23d0047bcdba89bd48cdb81e0437adabbfc9e19e135749129334a9db5c3ae5ad0c75b489e6e6545ee0c8134fc432153413793e  charls-2.2.0.tar.gz"