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.

46 lines
1023 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:=2
  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. TARGET_CFLAGS += -std=c99
  21. define Package/jq
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. TITLE:=Lightweight and flexible command-line JSON processor.
  25. URL:=https://stedolan.github.io/jq/
  26. MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
  27. endef
  28. define Package/jq/description
  29. Lightweight and flexible command-line JSON processor.
  30. endef
  31. define Package/jq/install
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  34. endef
  35. $(eval $(call BuildPackage,jq))