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.

54 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=docker
  3. PKG_VERSION:=20.10.2
  4. PKG_RELEASE:=1
  5. PKG_LICENSE:=Apache-2.0
  6. PKG_LICENSE_FILES:=LICENSE
  7. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_SOURCE_URL:=https://codeload.github.com/docker/cli/tar.gz/v$(PKG_VERSION)?
  9. PKG_HASH:=a663f54a158c6b2b23b253b14bf0de56ff035750098e760319de1edb7f4ae76d
  10. PKG_SOURCE_VERSION:=2291f61 # SHA1 used within the docker executable
  11. PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>
  12. PKG_BUILD_DEPENDS:=golang/host
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_USE_MIPS16:=0
  15. GO_PKG:=github.com/docker/cli
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../lang/golang/golang-package.mk
  18. define Package/docker
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=Docker Community Edition CLI
  22. URL:=https://www.docker.com/
  23. DEPENDS:=$(GO_ARCH_DEPENDS)
  24. endef
  25. define Package/docker/description
  26. The CLI used in the Docker CE and Docker EE products.
  27. endef
  28. TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS)
  29. TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
  30. define Build/Compile
  31. ( \
  32. cd $(PKG_BUILD_DIR); \
  33. $(GO_PKG_VARS) \
  34. GITCOMMIT=$(PKG_SOURCE_VERSION) \
  35. VERSION=$(PKG_VERSION) \
  36. ./scripts/build/binary; \
  37. )
  38. endef
  39. define Package/docker/install
  40. $(INSTALL_DIR) $(1)/usr/bin/
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/build/docker $(1)/usr/bin/
  42. endef
  43. $(eval $(call BuildPackage,docker))