2 # Copyright (C) 2008-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=micropython-lib
14 PKG_SOURCE_URL
:=https
://github.com
/micropython
/micropython-lib.git
15 PKG_SOURCE_VERSION
:=0c31e0b3d712fcd21982daec8bfca48ad5527a72
16 PKG_SOURCE_DATE
:=20220324
17 PKG_MIRROR_HASH
:=fb796c6d648e555e3e5233a3aec84be1692199b2cbae1efd7c22caf2a8c3f8f7
19 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
20 PKG_LICENSE
:=MIT PSF-2.0
21 PKG_LICENSE_FILES
:=LICENSE
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/micropython-lib
31 TITLE
:=micropython-lib
32 URL
:=https
://github.com
/micropython
/micropython-lib
36 define Package
/micropython-lib
/description
37 This is a repository of libraries designed to be useful for writing
38 MicroPython applications.
43 define Package
/micropython-lib
/install
44 for
dir in micropython python-ecosys python-stdlib unix-ffi
; do \
45 $(INSTALL_DIR
) $(1)/usr
/lib
/micropython
/$$$$dir ; \
46 $(CP
) $(PKG_BUILD_DIR
)/$$$$dir/* $(1)/usr
/lib
/micropython
/$$$$dir/ ; \
48 $(FIND
) $(1)/usr
/lib
/micropython \
49 -not
-type d \
( -not
-name
'*.py' -o
-name
'test_*' -o
-name
'setup.py' \
) -delete
50 $(FIND
) $(1)/usr
/lib
/micropython
-mindepth
1 -empty
-type d
-delete
53 $(eval
$(call BuildPackage
,micropython-lib
))