libxmlb: update to 0.3.23
authorLukas Voegl <[email protected]>
Mon, 8 Sep 2025 11:29:27 +0000 (13:29 +0200)
committerHannu Nyman <[email protected]>
Tue, 9 Sep 2025 19:02:50 +0000 (22:02 +0300)
- New CLI build option

Release notes: https://github.com/hughsie/libxmlb/releases/tag/0.3.23

Signed-off-by: Lukas Voegl <[email protected]>
libs/libxmlb/Config.in
libs/libxmlb/Makefile

index 812e8cf75ec2fa4f09f89a17df29be3610cd27bc..d1aab31fe305afae41ca55a2c803105fc293cff6 100644 (file)
@@ -1,6 +1,12 @@
 menu "Select libxmlb options"
        depends on PACKAGE_libxmlb
 
+config LIBXMLB_CLI
+       bool "Command-line tool"
+       default n
+       help
+         Compile and install the xb-tool cli
+
 config LIBXMLB_LZMA
        bool "LZMA"
        default n
index c010b0e2ce3d34f47c6b437291d534c96a08e135..e9201d0e478aebac9c0e4d860c3cf41127c3a3c6 100644 (file)
@@ -8,19 +8,17 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libxmlb
-PKG_VERSION:=0.3.19
+PKG_VERSION:=0.3.23
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/hughsie/libxmlb/releases/download/$(PKG_VERSION)
-PKG_HASH:=0a3ec258b12dbf10e5fe840b2421c84137eb7cc1b09c3de6210f3f7d51733733
+PKG_HASH:=ab86eb2073592448a4e0263ab56e222de092c0a3964b66a8d696cac071c8ee3c
 
 PKG_MAINTAINER:=Lukas Voegl <[email protected]>
 PKG_LICENSE:=LGPL-2.1-or-later
 PKG_LICENSE_FILES:=LICENSE
 
-PKG_BUILD_DEPENDS:=glib2/host
-
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/nls.mk
 include $(INCLUDE_DIR)/meson.mk
@@ -45,12 +43,11 @@ define Package/libxmlb/config
 endef
 
 MESON_ARGS += \
-       -Db_lto=true \
        -Dgtkdoc=false \
        -Dintrospection=false \
        -Dtests=false \
-       -Dcli=false \
        -Dstemmer=false \
+       -Dcli=$(if $(CONFIG_LIBXMLB_CLI),true,false) \
        -Dlzma=$(if $(CONFIG_LIBXMLB_LZMA),enabled,disabled) \
        -Dzstd=$(if $(CONFIG_LIBXMLB_ZSTD),enabled,disabled)
 
@@ -71,6 +68,10 @@ endef
 define Package/libxmlb/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxmlb.so* $(1)/usr/lib
+
+       $(if $(CONFIG_LIBXMLB_CLI), \
+               $(INSTALL_DIR) $(1)/usr/bin; \
+               $(CP) $(PKG_INSTALL_DIR)/usr/bin/xb-tool $(1)/usr/bin)
 endef
 
 $(eval $(call BuildPackage,libxmlb))