void-packages/srcpkgs/micropython/template
2015-08-20 10:31:15 +02:00

27 lines
782 B
Bash

# Template file for 'micropython'
pkgname=micropython
version=1.4.5
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="necrophcodr <necrophcodr@necrophcodr.me>"
license="MIT"
homepage="http://micropython.org/"
distfiles="http://github.com/micropython/micropython/archive/v${version}.tar.gz"
checksum=46c4968f1b66219e2c7efb69f2eaea52224e62c51b1759a9d98e9af917bda576
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
}