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.

37 lines
921 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=yq
  3. PKG_VERSION:=4.13.0
  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:=37c48c300f64c191f7b7e84d9002f6cba464c9437c79a367affe5b2d85f8fd3b
  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
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../../lang/golang/golang-package.mk
  17. define Package/yq
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=Portable command-line YAML processor
  21. URL:=https://mikefarah.gitbook.io/yq/
  22. DEPENDS:=$(GO_ARCH_DEPENDS)
  23. endef
  24. define Package/yq/description
  25. The aim of the project is to be the jq or sed of yaml files.
  26. endef
  27. $(eval $(call GoBinPackage,yq))
  28. $(eval $(call BuildPackage,yq))