void-packages/srcpkgs/micropython/template

31 lines
892 B
Bash

# Template file for 'micropython'
pkgname=micropython
version=1.7
revision=2
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=ad44d28700d346ceb9a70ae92d36306d42e187fc1af19fa2c7a3ab7dc18742ef
case "$XBPS_TARGET_MACHINE" in
aarch64*) broken="https://build.voidlinux.eu/builders/aarch64-musl_builder/builds/2215/steps/shell_3/logs/stdio";;
esac
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
}