aboutsummaryrefslogtreecommitdiffstats
path: root/main/jbig2dec/APKBUILD
blob: 45fdbebcc1cbb4e677479c96b9ed41b208f84b0c (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
45
46
47
48
49
50
51
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jbig2dec
pkgver=0.17
_gsver="gs950"
pkgrel=2
pkgdesc="JBIG2 image compression format decoder"
url="https://jbig2dec.com/"
arch="all"
license="GPL-2.0-or-later"
makedepends="autoconf automake libtool"
checkdepends="python2"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/$_gsver/jbig2dec-$pkgver.tar.gz
	CVE-2020-12268.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	autoreconf -vif
}

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

check() {
	cd "$builddir"
	make check
}

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

sha512sums="e1ac4af318fb31e097b558e6b88334d35e035d1378b152aabb025f2918969a3a79c6a6644848fccf5d4eaa6efaf2b0422ff01d5bbcde8245f7af6fa29022d9b8  jbig2dec-0.17.tar.gz
797666d1614c9c9be3c854feb3e6a2ad18bec1199a7a4cc7a15afaaa1609848a44e3596d9549416f57d7508bb74e2043e24fe602ab5130cf0f0434dbc4972fbe  CVE-2020-12268.patch"