# Maintainer: PktSurf <smlinux@pktsurf.in>
app=json-c
version=0.13.1
build=1sml
homepage="https://github.com/json-c/json-c"
download="https://github.com/json-c/json-c/archive/refs/tags/json-c-$version-20180305.tar.gz"
desc="JSON library in C"
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 COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
db81b5a5a1e55135d3d3250a59846160a1c0482b5765dff8f2b7cc627103dab7e200eb7aa9033493a910a4dad19a4570098284584c645ede0009521178c111cd  json-c-0.13.1.tar.lz
"
