Merge pull request #4853 from StevenHessing/noddos
[feed/packages.git] / lang / python / micropython-lib / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=micropython-lib
11 PKG_VERSION=1.8.6-$(PKG_SOURCE_VERSION)
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
15 PKG_LICENSE:=MIT, PSFL
16 PKG_LICENSE_FILES:=LICENSE
17
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
20 PKG_SOURCE_VERSION:=f81e979c56dddb771ad36ec381b7f2c6cd12111f
21
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
24 PKG_MIRROR_HASH:=b9642fb3d01a7423d64ecc6ea81b4fac81a9112494727c8ca7744bd8e3ac120b
25 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
26 PKG_BUILD_PARALLEL:=1
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/micropython-lib
31 SUBMENU:=Python
32 SECTION:=lang
33 CATEGORY:=Languages
34 TITLE:=micropython-lib
35 URL:=https://github.com/micropython/micropython-lib
36 DEPENDS:=+micropython
37 endef
38
39 define Package/micropython-lib/description
40 This package contains micropython-lib, a project to develop a non-monolothic
41 standard library for Micro Python. Note that this is a work in progress and
42 several libraries may be missing, incomplete or buggy.
43 endef
44
45 MAKE_FLAGS:=\
46 PREFIX=$(PKG_BUILD_DIR)/_install_tmp/dist \
47 install
48
49 define Package/micropython-lib/install
50 $(INSTALL_DIR) $(1)/usr/lib/micropython
51 $(CP) $(PKG_BUILD_DIR)/_install_tmp/dist/* $(1)/usr/lib/micropython
52 endef
53
54 $(eval $(call BuildPackage,micropython-lib))
55