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.
 
 
 
 
 
 

53 lines
1.5 KiB

#
# Copyright (C) 2008-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=micropython-lib
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
PKG_SOURCE_VERSION:=cdd260f0792d04a1ded99171b4c7a2582b7856b4
PKG_SOURCE_DATE:=20211112
PKG_MIRROR_HASH:=fea11185756e746e78cfe66dc4fa33830721cd94d726ac7cf4dde2e0a16d5041
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_LICENSE:=MIT PSF-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/micropython-lib
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=micropython-lib
URL:=https://github.com/micropython/micropython-lib
DEPENDS:=+micropython
endef
define Package/micropython-lib/description
This is a repository of libraries designed to be useful for writing
MicroPython applications.
endef
Build/Compile:=:
define Package/micropython-lib/install
for dir in micropython python-ecosys python-stdlib unix-ffi; do \
$(INSTALL_DIR) $(1)/usr/lib/micropython/$$$$dir ; \
$(CP) $(PKG_BUILD_DIR)/$$$$dir/* $(1)/usr/lib/micropython/$$$$dir/ ; \
done
$(FIND) $(1)/usr/lib/micropython \
-not -type d \( -not -name '*.py' -o -name 'test_*' -o -name 'setup.py' \) -delete
$(FIND) $(1)/usr/lib/micropython -mindepth 1 -empty -type d -delete
endef
$(eval $(call BuildPackage,micropython-lib))