diff --git a/DEVELOPERS b/DEVELOPERS index 0296a28280..c876be2cb6 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3194,6 +3194,7 @@ F: package/vuejs-router/ N: Thomas Devoogdt F: package/fluent-bit/ F: package/libsoup3/ +F: package/yq/ N: Thomas Huth F: package/ascii-invaders/ diff --git a/package/Config.in b/package/Config.in index 297565ab1b..cd8765bbcf 100644 --- a/package/Config.in +++ b/package/Config.in @@ -203,6 +203,7 @@ menu "Development tools" source "package/tree/Config.in" source "package/unifdef/Config.in" source "package/yasm/Config.in" + source "package/yq/Config.in" endmenu menu "Filesystem and flash utilities" diff --git a/package/yq/Config.in b/package/yq/Config.in new file mode 100644 index 0000000000..d85b3e5601 --- /dev/null +++ b/package/yq/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_YQ + bool "yq" + depends on BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS + select BR2_PACKAGE_HOST_GO + help + A lightweight and portable command-line YAML, JSON, INI + and XML processor, yq uses jq (a popular JSON processor) + like syntax. + + https://mikefarah.gitbook.io/yq/ diff --git a/package/yq/yq.hash b/package/yq/yq.hash new file mode 100644 index 0000000000..519d1c9a3e --- /dev/null +++ b/package/yq/yq.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 291334bc00863c144098b5b0a723a5c769df115c46938e17920917aa24776591 yq-4.49.2-go2.tar.gz +sha256 697db34dabb21562fe84487a2ccd031fbd45382b89c2cbdec8ef31682c486040 LICENSE diff --git a/package/yq/yq.mk b/package/yq/yq.mk new file mode 100644 index 0000000000..10d0959791 --- /dev/null +++ b/package/yq/yq.mk @@ -0,0 +1,13 @@ +################################################################################ +# +# yq +# +################################################################################ + +YQ_VERSION = 4.49.2 +YQ_SITE = $(call github,mikefarah,yq,v$(YQ_VERSION)) +YQ_LICENSE = MIT +YQ_LICENSE_FILES = LICENSE +YQ_GOMOD = github.com/mikefarah/yq/v4 + +$(eval $(golang-package))