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-0.13.1-20180305.tar.gz'
DESC="JSON library in C"
REQUIRES="musl"

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

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

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

  make
  make install DESTDIR=$PKG

  cp COPYING $PKGDOCS/

  mkfinalpkg
}

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