void-packages/srcpkgs/micropython/template
2015-10-12 11:14:18 +02:00

28 lines
772 B
Bash

# Template file for 'micropython'
pkgname=micropython
version=1.4.6
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 <xtraeme@voidlinux.eu>"
license="MIT"
homepage="http://micropython.org/"
distfiles="http://github.com/micropython/micropython/archive/v${version}.tar.gz"
checksum=b5ae9fdcc85ec11a932cc2369aa7eee667e7f3cea950441e9889e62555aeea81
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
}