From df1ee0c46591803f67fa3c0d6269cc8e4a6a2b62 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 3 Nov 2024 22:14:49 +0800 Subject: [PATCH] json-c 0.18-1 --- PKGBUILD | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 8f60d3d..53bada6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ # Maintainer: Future Linux Team pkgname=json-c -pkgver=0.17 +pkgver=0.18 pkgrel=1 pkgdesc="A JSON implementation in C" arch=('x86_64') @@ -14,25 +14,27 @@ license=('MIT') depends=('glibc') makedepends=('cmake' 'ninja') source=(https://s3.amazonaws.com/json-c_releases/releases/${pkgname}-${pkgver}.tar.gz) -sha256sums=(7550914d58fb63b2c3546f3ccfbe11f1c094147bd31a69dcd23714d7956159e6) +sha256sums=(876ab046479166b869afc6896d288183bbc0e5843f141200c677b3e8dfb11724) build() { - cd ${pkgname}-${pkgver} + cd ${pkgname}-${pkgver} - CC=${CHOST}-gcc CXX=${CHOST}-g++ \ - cmake -B build -G Ninja \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_STATIC_LIBS=OFF \ - -DCMAKE_SYSTEM_NAME=Linux \ - -DCMAKE_HOST_SYSTEM_NAME=Linux + CC=${CHOST}-gcc CXX=${CHOST}-g++ \ + cmake -B build -G Ninja \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_STATIC_LIBS=OFF \ + -DENABLE_THREADING=ON \ + -DENABLE_RDRAND=OFF \ + -DCMAKE_SYSTEM_NAME=Linux \ + -DCMAKE_HOST_SYSTEM_NAME=Linux - cmake --build build + cmake --build build } package() { - cd ${pkgname}-${pkgver} + cd ${pkgname}-${pkgver} - DESTDIR=${pkgdir} cmake --install build + DESTDIR=${pkgdir} cmake --install build }