void-packages/srcpkgs/micropython/template

28 lines
787 B
Bash

# Template file for 'micropython'
pkgname=micropython
version=1.4.3
revision=1
build_wrksrc=unix
hostmakedepends="pkg-config 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=09ac1f38fb881bb1942e1a17cf519f692ed78d732403d96586ae76c9c597fa63
pre_configure() {
sed -i 's|-Werror||;/^COPT =/d' Makefile
}
do_build() {
make ${makejobs} 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
}