aboutsummaryrefslogtreecommitdiffstats
path: root/main/jasper/APKBUILD
blob: ac90ae10c93209a92d5c98b4615683d0e4946e5c (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
36
37
38
39
40
41
42
43
44
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jasper
pkgver=2.0.16
pkgrel=0
pkgdesc="A software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard"
url="http://www.ece.uvic.ca/~mdadams/jasper/"
arch="all"
license="JasPer-2.0"
makedepends="libjpeg-turbo-dev cmake"
checkdepends="bash"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="$pkgname-$pkgver.tar.gz::https://github.com/mdadams/jasper/archive/version-${pkgver}.tar.gz
	rpath.patch
	disable-tests.patch"
builddir="$srcdir"/$pkgname-version-$pkgver

# secfixes:
#   2.0.12-r1:
#     - CVE-2017-1000050

build () {
	mkdir "$builddir"/obj
	cd "$builddir"/obj
	cmake ..  \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib

	make
}

check() {
	cd "$builddir"/obj
	make test
}

package() {
	cd "$builddir"/obj
	make DESTDIR="$pkgdir" install
}

sha512sums="b3bca227f833567c9061c4a29c0599784ed6a131b5cceddfd1696542d19add821eda445ce6d83782b454b266723b24d0f028cbc644a25c0e3a75304e615b34ee  jasper-2.0.16.tar.gz
4fd85dda60412497ce9b9fc439cc78cc37216ea02bfcd00e2403d14be31f75c19532a31d45132ebb83dde3b31035277abb1b80bc523d9f7cb2f2018405997086  rpath.patch
05ff28b58a68ee2b7b2aef5fcaeff3d81f9558e0353e43de2be7363c63243d8f79efc0994e2afe1ae0f391ae7bde3c84b252fa89f25ae87162c46f6f2d36f349  disable-tests.patch"