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.

44 lines
996 B

  1. #
  2. # Copyright (C) 2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=jq
  9. PKG_VERSION:=1.5
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=BSD
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://github.com/stedolan/jq/releases/download/jq-$(PKG_VERSION)/
  14. PKG_MD5SUM:=0933532b086bd8b6a41c1b162b1731f9
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. ifdef CONFIG_USE_MIPS16
  18. TARGET_CFLAGS += -fno-ipa-sra
  19. endif
  20. define Package/jq
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Lightweight and flexible command-line JSON processor.
  24. URL:=https://stedolan.github.io/jq/
  25. MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  26. endef
  27. define Package/jq/description
  28. Lightweight and flexible command-line JSON processor.
  29. endef
  30. define Package/jq/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  33. endef
  34. $(eval $(call BuildPackage,jq))