From 3c0f8956584c5df792c9defd05ba4d58140b4817 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 27 May 2024 01:11:11 -0400 Subject: [PATCH] New package: yyjson-0.9.0 --- common/shlibs | 1 + srcpkgs/yyjson-devel | 1 + srcpkgs/yyjson/template | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 120000 srcpkgs/yyjson-devel create mode 100644 srcpkgs/yyjson/template diff --git a/common/shlibs b/common/shlibs index 65658013b5f..279bf10d77d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4277,6 +4277,7 @@ libreadosm.so.1 readosm-1.1.0a_1 libSvtAv1Enc.so.1 libsvt-av1-1.3.0_1 libSvtAv1Dec.so.0 libsvt-av1-0.9.0_1 libyascreen.so.0 yascreen-1.96_1 +libyyjson.so.0 yyjson-0.9.0_1 librz_analysis.so.0.7 rizin-0.7.2_1 librz_asm.so.0.7 rizin-0.7.2_1 librz_bin.so.0.7 rizin-0.7.2_1 diff --git a/srcpkgs/yyjson-devel b/srcpkgs/yyjson-devel new file mode 120000 index 00000000000..4e16db7ca45 --- /dev/null +++ b/srcpkgs/yyjson-devel @@ -0,0 +1 @@ +yyjson \ No newline at end of file diff --git a/srcpkgs/yyjson/template b/srcpkgs/yyjson/template new file mode 100644 index 00000000000..19397dbdb7f --- /dev/null +++ b/srcpkgs/yyjson/template @@ -0,0 +1,28 @@ +# Template file for 'yyjson' +pkgname=yyjson +version=0.9.0 +revision=1 +build_style=cmake +configure_args="-DBUILD_SHARED_LIBS=ON" +short_desc="High performance JSON library" +maintainer="classabbyamp " +license="GPL-3.0-or-later" +homepage="https://ibireme.github.io/yyjson" +changelog="https://github.com/ibireme/yyjson/raw/master/CHANGELOG.md" +distfiles="https://github.com/ibireme/yyjson/archive/refs/tags/${version}.tar.gz" +checksum=59902bea55585d870fd7681eabe6091fbfd1a8776d1950f859d2dbbd510c74bd + +if [ -n "$XBPS_CHECK_PKGS" ]; then + configure_args+=" -DYYJSON_BUILD_TESTS=ON" +fi + +yyjson-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/lib/cmake + vmove "usr/lib/*.so" + } +}