void-packages/srcpkgs/micropython/template
2019-01-22 11:50:04 -02:00

29 lines
835 B
Bash

# Template file for 'micropython'
pkgname=micropython
version=1.9.4
revision=1
build_wrksrc=ports/unix
hostmakedepends="pkg-config python"
makedepends="libffi-devel"
short_desc="Implementation of Python 3.x for microcontrollers"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="MIT"
homepage="https://micropython.org/"
distfiles="https://github.com/micropython/micropython/releases/download/v${version}/micropython-${version}.tar.gz"
checksum=0db042011bffcbd65362b67eb3cca87eaefa9f2a55b747fa75e922c706b8ce1a
pre_configure() {
sed -i 's|-Werror||;/^COPT =/d' Makefile
}
do_build() {
unset CPP
make -C ../../mpy-cross V=1 STRIP=echo ${makejobs}
make V=1 CC=${CC} CFLAGS_EXTRA="${CPPFLAGS} ${CFLAGS}" \
LDFLAGS_EXTRA="${LDFLAGS}" STRIP=echo ${makejobs} axtls all
}
do_install() {
vbin micropython
vlicense ../../LICENSE
}