python-awscli: Add new package 8214/head
authorDaniel Danzberger <daniel@dd-wrt.com>
Thu, 4 Apr 2019 12:00:16 +0000 (14:00 +0200)
committerDaniel Danzberger <daniel@dd-wrt.com>
Sat, 20 Apr 2019 06:10:12 +0000 (08:10 +0200)
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
lang/python/python-awscli/Makefile [new file with mode: 0644]

diff --git a/lang/python/python-awscli/Makefile b/lang/python/python-awscli/Makefile
new file mode 100644 (file)
index 0000000..d52faac
--- /dev/null
@@ -0,0 +1,71 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=awscli
+PKG_VERSION:=1.16.75
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/a/awscli
+PKG_HASH:=8d96ec0de325ea8271cc6aa95b7392bbf548ec4aabd3ffbcdc0619b64edd4a45
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-awscli-$(PKG_VERSION)
+
+PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
+PKG_LICENSE:=MIT
+
+include $(INCLUDE_DIR)/package.mk
+include ../python-package.mk
+include ../python3-package.mk
+
+PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+
+define Package/python-awscli/Default
+  SUBMENU:=Python
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=awscli
+  URL:=https://github.com/aws/aws-cli
+endef
+
+define Package/python-awscli
+$(call Package/python-awscli/Default)
+  DEPENDS:=+python \
+       +python-yaml \
+       +python-pyasn1 \
+       +python-botocore \
+       +python-rsa \
+       +python-colorama \
+       +python-docutils \
+       +python-s3transfer
+  VARIANT:=python
+endef
+
+define Package/python3-awscli
+$(call Package/python-awscli/Default)
+  DEPENDS:=+python3 \
+       +python3-yaml \
+       +python3-pyasn1 \
+       +python3-botocore \
+       +python3-rsa \
+       +python3-colorama \
+       +python3-docutils \
+       +python3-s3transfer
+  VARIANT:=python3
+endef
+
+define Package/python-awscli/description
+This package provides a unified command line interface to Amazon Web Services.
+endef
+
+define Package/python3-awscli/description
+$(call Package/python-awscli/description)
+.
+(Variant for Python3)
+endef
+
+$(eval $(call PyPackage,python-awscli))
+$(eval $(call BuildPackage,python-awscli))
+$(eval $(call BuildPackage,python-awscli-src))
+
+$(eval $(call Py3Package,python3-awscli))
+$(eval $(call BuildPackage,python3-awscli))
+$(eval $(call BuildPackage,python3-awscli-src))