crux-musl

Unnamed repository; edit this file 'description' to name the repository.
git clone https://codeberg.org/emmett1/crux-musl
Log | Files | Refs | README | LICENSE

Pkgfile (641B)


      1 # Description: JSON implementation in C
      2 # URL: https://github.com/json-c/json-c/wiki
      3 # Maintainer: Emmett1, emmett1 dot 2miligrams at protonmail dot com
      4 
      5 name=json-c
      6 version=0.18
      7 release=1
      8 source=(https://s3.amazonaws.com/json-c_releases/releases/$name-$version.tar.gz)
      9 
     10 build() {
     11     export CFLAGS="$CFLAGS -Wno-error"
     12     cmake -S $name-$version -B build -G Ninja \
     13         -D CMAKE_INSTALL_PREFIX=/usr \
     14         -D CMAKE_INSTALL_LIBDIR=/usr/lib \
     15         -D CMAKE_BUILD_TYPE=Release \
     16         -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
     17         -D BUILD_TESTING=OFF
     18     cmake --build build -j ${JOBS:-1}
     19     DESTDIR=$PKG cmake --install build
     20 }