void-packages/srcpkgs/micropython/template

27 lines
739 B
Bash

# Template file for 'micropython'
pkgname=micropython
version=1.6
revision=1
build_wrksrc=unix
hostmakedepends="pkg-config python"
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=f8ea3faffa797de1a06c16c8f57c784c665b318ca08ac17f74dcbc95322d47de
pre_configure() {
sed -i 's|-Werror||;/^COPT =/d' Makefile
}
do_build() {
make V=1 CC=$CC CFLAGS_EXTRA="$CPPFLAGS $CFLAGS" \
LDFLAGS_EXTRA="$LDFLAGS" STRIP=echo
}
do_install() {
vbin micropython
vbin ../tools/pip-micropython
vlicense ../LICENSE
}