blob: 36b01fe5cee2895997d1b5c3fdbb36b920512362 (
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
44
45
46
47
|
# Contributor: Michael Zhou <zhoumichaely@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=jbig2dec
pkgver=0.12
pkgrel=0
pkgdesc="JBIG2 image compression format decoder"
url="http://www.ghostscript.com/jbig2dec.html"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.ghostscript.com/public/jbig2dec/jbig2dec-$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
autoreconf -vif
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="b73cfb55c61c6978e6539b889bdc2633 jbig2dec-0.12.tar.gz"
sha256sums="bcc5f2cc75ee46e9a2c3c68d4a1b740280c772062579a5d0ceda24bee2e5ebf0 jbig2dec-0.12.tar.gz"
sha512sums="4cec380b478f23f895c707129e0d60fa2d00d1210f7231c56095be1c3fd3e88de0005364df7632703d1e5f8fe0bbeadb9f8cb736cae9f44a40f84e2cd2226674 jbig2dec-0.12.tar.gz"
|