Files
chromebrew/packages/cjson.rb
github-actions[bot] 46d5639699 AutoBuild: update-cmake started at 2025-05-06-15UTC (#11877)
* Cmake 4.0.1 => 4.0.2

* Adjust cmake build options to properly set LIBRARY_PATH.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust cmake build.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Adjust cmake build options.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Remove 'mold -run' usage as that confuses LIBRARY_PATH overrides.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add built packages for linux/386 to update-cmake

* Add built packages for linux/amd64 to update-cmake

* Add built packages for linux/arm/v7 to update-cmake

* Confirm autotools change works with nano update.

Signed-off-by: Satadru Pramanik <satadru@gmail.com>

* Add built packages for linux/386 to update-cmake

* Add built packages for linux/amd64 to update-cmake

* Add built packages for linux/arm/v7 to update-cmake

---------

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: Ed Reel <edreel@gmail.com>
Co-authored-by: Satadru Pramanik <satadru@gmail.com>
Co-authored-by: satmandu <satmandu@users.noreply.github.com>
2025-05-06 17:40:47 +00:00

37 lines
1.2 KiB
Ruby

# Adapted from Arch Linux cjson PKGBUILD at:
# https://github.com/archlinux/svntogit-community/raw/packages/cjson/trunk/PKGBUILD
require 'package'
class Cjson < Package
description 'Ultralightweight JSON parser in ANSI C'
homepage 'https://github.com/DaveGamble/cJSON'
version '1.7.15'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/DaveGamble/cJSON/archive/v1.7.15.tar.gz'
source_sha256 '5308fd4bd90cef7aa060558514de6a1a4a0819974a26e6ed13973c5f624c24b2'
binary_compression 'tar.zst'
binary_sha256({
aarch64: '00cd4e939d680a9979c44f8007d0ff232fc1b4bda1b6f8325adbf9d3e8f34cf6',
armv7l: '00cd4e939d680a9979c44f8007d0ff232fc1b4bda1b6f8325adbf9d3e8f34cf6',
i686: 'ab346f52cef0555503e07ac58d97964da3986b5b7c2a1c1c9e7980efcc8ad861',
x86_64: 'a74121d3420cec8975f7154d42e65e780de5ee07ad6b31d3380427035ce8148c'
})
depends_on 'glibc' # R
def self.build
system "cmake -B builddir #{CREW_CMAKE_OPTIONS} \
-DBUILD_SHARED_LIBS=ON \
-Wno-dev \
-G Ninja"
system "#{CREW_NINJA} -C builddir"
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} #{CREW_NINJA} -C builddir install"
end
end