# Maintainer: PktSurf <smlinux@pktsurf.in>
app=jansson
version=2.13
build=1sml
homepage="https://digip.org/jansson/"
download="https://digip.org/jansson/releases/jansson-2.13.tar.bz2"
desc="library for encoding, decoding and manipulating JSON data"
requires="musl"

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

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

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

  make
  make install DESTDIR=$pkg

  cp LICENSE $pkgdocs/

  mkfinalpkg
}

sha512sums="
64f6f81d8b3b1814845b9014f7da77bbf536abb7572dd939bfc870c9c5c93791e4f0c4e574f71ed1de19d74d1efe9498d045073905c119786554b7f2d7c1fde6  jansson-2.13.tar.lz
"
