summaryrefslogtreecommitdiff
path: root/repo/djvulibre/djvulibre.xibuild
blob: d275bd2d9273878e600761d0924708acbbbcd60c (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
#!/bin/sh

NAME="djvulibre"
DESC="Utilities and Libraries for the DjVu image format"

MAKEDEPS=" libjpeg-turbo tiff automake autoconf libtool"

PKG_VER=3.5.28
SOURCE="https://downloads.sourceforge.net/djvu/djvulibre-$PKG_VER.tar.gz"

ADDITIONAL="
djvulibre-3.5.27-check-image-size.patch
djvulibre-3.5.27-check-input-pool.patch
djvulibre-3.5.27-djvuport-stack-overflow.patch
djvulibre-3.5.27-export-file.patch
djvulibre-3.5.27-integer-overflow.patch
djvulibre-3.5.27-out-of-bound-write-2.patch
djvulibre-3.5.27-unsigned-short-overflow.patch
"

prepare() {
	apply_patches
	autoreconf -fi
}

build() {
	./configure \
		--prefix=/usr \
		--mandir=/usr/share/man
	make
}

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

libs() {
	pkgdesc="Runtime support for the DjVu image format"
	mkdir -p "$PKG_DEST"/usr/lib
	mv "$PKG_DEST"/usr/lib/*.so.* \
		"$PKG_DEST"/usr/lib/
}