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.

71 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=awscli
  3. PKG_VERSION:=1.16.75
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/awscli
  7. PKG_HASH:=8d96ec0de325ea8271cc6aa95b7392bbf548ec4aabd3ffbcdc0619b64edd4a45
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-awscli-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
  10. PKG_LICENSE:=MIT
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  15. define Package/python-awscli/Default
  16. SUBMENU:=Python
  17. SECTION:=lang
  18. CATEGORY:=Languages
  19. TITLE:=awscli
  20. URL:=https://github.com/aws/aws-cli
  21. endef
  22. define Package/python-awscli
  23. $(call Package/python-awscli/Default)
  24. DEPENDS:=+python \
  25. +python-yaml \
  26. +python-pyasn1 \
  27. +python-botocore \
  28. +python-rsa \
  29. +python-colorama \
  30. +python-docutils \
  31. +python-s3transfer
  32. VARIANT:=python
  33. endef
  34. define Package/python3-awscli
  35. $(call Package/python-awscli/Default)
  36. DEPENDS:=+python3 \
  37. +python3-yaml \
  38. +python3-pyasn1 \
  39. +python3-botocore \
  40. +python3-rsa \
  41. +python3-colorama \
  42. +python3-docutils \
  43. +python3-s3transfer
  44. VARIANT:=python3
  45. endef
  46. define Package/python-awscli/description
  47. This package provides a unified command line interface to Amazon Web Services.
  48. endef
  49. define Package/python3-awscli/description
  50. $(call Package/python-awscli/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-awscli))
  55. $(eval $(call BuildPackage,python-awscli))
  56. $(eval $(call BuildPackage,python-awscli-src))
  57. $(eval $(call Py3Package,python3-awscli))
  58. $(eval $(call BuildPackage,python3-awscli))
  59. $(eval $(call BuildPackage,python3-awscli-src))