void-packages/srcpkgs/micropython/template
Alessio Sergi 285ad3ec2b micropython: update to 1.4.3
- use our {C,LD}FLAGS
- do not strip
- add patch to make sure the binary contains a proper version number
- install license
- misc tweaks

Close #1608.
2015-05-28 15:48:14 +02:00

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
}