summaryrefslogtreecommitdiff
path: root/community/jbig2dec/PKGBUILD
blob: 6f65509505c4886f5fe42731cd3c5b24810b37df (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
# $Id: PKGBUILD 67870 2012-03-15 15:48:59Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=jbig2dec
pkgver=0.11
pkgrel=5
pkgdesc="decoder implementation of the JBIG2 image compression format"
arch=('x86_64' 'i686' 'mips64el')
url="http://jbig2dec.sourceforge.net/"
license=('GPL3')
depends=('glibc' 'libpng')
source=(http://ghostscript.com/~giles/jbig2/$pkgname/$pkgname-$pkgver.tar.gz
        $pkgname-$pkgver-libpng15.patch)
md5sums=('1f61e144852c86563fee6e5ddced63f1'
         '6d80db1f3a5581a5e38234b9ed599b20')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  patch -Np0 -i "$srcdir"/$pkgname-$pkgver-libpng15.patch
  autoreconf -fi
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir/" install
}