Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #
  2. # Copyright (C) 2008-2015 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:=micropython-lib
  9. PKG_VERSION:=1.9.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/micropython/micropython-lib/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=66e15380eb109613263beb6825b8eecb9191088270c1a59e8c7d922dd57183c7
  14. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  15. PKG_LICENSE:=MIT, PSFL
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/micropython-lib
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=micropython-lib
  24. URL:=https://github.com/micropython/micropython-lib
  25. DEPENDS:=+micropython
  26. endef
  27. define Package/micropython-lib/description
  28. This package contains micropython-lib, a project to develop a non-monolothic
  29. standard library for Micro Python. Note that this is a work in progress and
  30. several libraries may be missing, incomplete or buggy.
  31. endef
  32. MAKE_FLAGS:=\
  33. PREFIX=$(PKG_BUILD_DIR)/_install_tmp/dist \
  34. install
  35. define Package/micropython-lib/install
  36. $(INSTALL_DIR) $(1)/usr/lib/micropython
  37. $(CP) $(PKG_BUILD_DIR)/_install_tmp/dist/* $(1)/usr/lib/micropython
  38. endef
  39. $(eval $(call BuildPackage,micropython-lib))