# Contributor: Angel 'angvp' Velasquez # Contributor: Frank Ickstadt (frank dot ickstadt at gmail dot com) pkgname=jbigkit pkgver=1.6 pkgrel=5 pkgdesc="Data compression library/utilities for bi-level high-resolution images" arch=('i686' 'x86_64') url="http://www.cl.cam.ac.uk/~mgk25/jbigkit/" license=('GPL') depends=('glibc') source=(http://www.cl.cam.ac.uk/~mgk25/download/jbigkit-$pkgver.tar.gz) md5sums=('ce196e45f293d40ba76af3dc981ccfd7') build() { cd $srcdir/$pkgname ./configure --prefix=/usr make || return 1 install -D -m644 $startdir/src/$pkgname/libjbig/libjbig.a $startdir/pkg/usr/lib/libjbig.a && \ install -D -m644 $startdir/src/$pkgname/libjbig/jbig.h $startdir/pkg/usr/include/jbig.h && \ gzip $startdir/src/$pkgname/pbmtools/*.[15] && \ install -d $startdir/pkg/usr/share/man/man1 && \ install -d $startdir/pkg/usr/share/man/man5 && \ install -D -m644 $startdir/src/$pkgname/pbmtools/*.1.gz $startdir/pkg/usr/share/man/man1 && \ install -D -m644 $startdir/src/$pkgname/pbmtools/*.5.gz $startdir/pkg/usr/share/man/man5 && \ install -D -m755 $startdir/src/$pkgname/pbmtools/jbgtopbm $startdir/pkg/usr/bin/jbgtopbm && \ install -D -m755 $startdir/src/$pkgname/pbmtools/pbmtojbg $startdir/pkg/usr/bin/pbmtojbg || return 1 rm -f $pkgdir/usr/share/man/man5/p{b,g}m.5.gz }