# Template file for 'micropython' pkgname=micropython version=1.5.1 revision=1 build_wrksrc=unix hostmakedepends="pkg-config python python3.4" makedepends="libffi-devel readline-devel" short_desc="Implementation of Python 3.x for microcontrollers" maintainer="Juan RP " license="MIT" homepage="http://micropython.org/" distfiles="http://github.com/micropython/micropython/archive/v${version}.tar.gz" checksum=95cc34089a1e40a992065ff9c9b67c121674c3bd6136a50882054fcac27485c2 pre_configure() { sed -i 's|-Werror||;/^COPT =/d' Makefile } do_build() { make V=1 PYTHON=python3.4 \ CC=$CC CFLAGS_EXTRA="$CPPFLAGS $CFLAGS" \ LDFLAGS_EXTRA="$LDFLAGS" STRIP=echo } do_install() { vbin micropython vbin ../tools/pip-micropython vlicense ../LICENSE }