APP=jbig2dec
VERSION=0.18
BUILD=1sml
HOMEPAGE='https://jbig2dec.com/'
DESC="a JBIG2 decoder"
REQUIRES="zlib libpng"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-static \
    --enable-shared 

  make
  make install DESTDIR=$PKG

  cp COPYING LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
57779cc64dcdf25b2cb364f760d7e7c1eb8fa58450bc201faf4eeb03461fa7a13fb3181a7d6a1f42436d3c5e85046a5bd6eab4e6d33c420e1132a0b99e2655bf  jbig2dec-0.18.tar.lz
"
