You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
979 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=yq
  3. PKG_VERSION:=4.26.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/mikefarah/yq/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=aa280a6facafc8fc5d0f3b5926a0f990ed16520dec8cb18f33752dbf6b8dc998
  8. PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE
  11. PKG_BUILD_DEPENDS:=golang/host
  12. PKG_BUILD_PARALLEL:=1
  13. PKG_USE_MIPS16:=0
  14. GO_PKG:=github.com/mikefarah/yq/v4
  15. GO_PKG_LDFLAGS_X:=$(GO_PKG)/cmd.Version=$(PKG_VERSION)
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/yq
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Portable command-line YAML processor
  22. URL:=https://mikefarah.gitbook.io/yq/
  23. DEPENDS:=$(GO_ARCH_DEPENDS)
  24. endef
  25. define Package/yq/description
  26. The aim of the project is to be the jq or sed of yaml files.
  27. endef
  28. $(eval $(call GoBinPackage,yq))
  29. $(eval $(call BuildPackage,yq))