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
11 PKG_VERSION=1.8.6-$(PKG_SOURCE_VERSION)
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
15 PKG_LICENSE:=MIT, PSFL
16 PKG_LICENSE_FILES:=LICENSE
19 PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
20 PKG_SOURCE_VERSION:=f81e979c56dddb771ad36ec381b7f2c6cd12111f
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
27 include $(INCLUDE_DIR)/package.mk
29 define Package/micropython-lib
33 TITLE:=micropython-lib
34 URL:=https://github.com/micropython/micropython-lib
38 define Package/micropython-lib/description
39 This package contains micropython-lib, a project to develop a non-monolothic
40 standard library for Micro Python. Note that this is a work in progress and
41 several libraries may be missing, incomplete or buggy.
46 PREFIX=$(PKG_BUILD_DIR)/_install_tmp \
49 define Package/micropython-lib/install
50 $(INSTALL_DIR) $(1)/usr/lib/micropython
51 $(CP) $(PKG_BUILD_DIR)/_install_tmp/* $(1)/usr/lib/micropython
54 $(eval $(call BuildPackage,micropython-lib))