aboutsummaryrefslogtreecommitdiffstats
path: root/main/jbig2dec/APKBUILD
blob: abc924b9b764b196984675a32178f6d20ea2ecbe (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
35
36
37
38
39
40
41
42
43
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jbig2dec
pkgver=0.20
pkgrel=0
pkgdesc="JBIG2 image compression format decoder"
options="!check" # Tests require python2
url="https://jbig2dec.com/"
arch="all"
license="AGPL-3.0-or-later"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/ArtifexSoftware/jbig2dec/releases/download/$pkgver/jbig2dec-$pkgver.tar.gz"

# secfixes:
#   0.18-r0:
#     - CVE-2020-12268

prepare() {
	default_prepare
	autoreconf -vif
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--without-libpng
	make
}

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

sha512sums="
74d40b4d5b21dcb2b6ed15de84e9ef292774783547d0a36c7185740f3fe34341665b4aa756369d27d158404f15f36f3edd2fd1a8187a196d08c9b06ab3d04101  jbig2dec-0.20.tar.gz
"