# Maintainer: PktSurf <smlinux@pktsurf.in>
app=jbig2dec
version=0.18
build=1sml
homepage="https://jbig2dec.com/"
desc="JBIG2 decoder"
requires="zlib libpng"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix= \
    --disable-static \
    --enable-shared 

  make
  make install DESTDIR=$pkg

  cp COPYING LICENSE $pkgdocs/

  mkfinalpkg
}

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