void-packages/srcpkgs/micropython/template

28 lines
772 B
Bash
Raw Normal View History

2015-02-26 17:04:20 +01:00
# Template file for 'micropython'
pkgname=micropython
2015-11-24 07:42:09 +01:00
version=1.5.1
2015-02-26 17:04:20 +01:00
revision=1
build_wrksrc=unix
2015-08-20 10:31:15 +02:00
hostmakedepends="pkg-config python python3.4"
2015-02-26 20:39:37 +01:00
makedepends="libffi-devel readline-devel"
short_desc="Implementation of Python 3.x for microcontrollers"
2015-10-12 11:14:18 +02:00
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-02-26 17:04:20 +01:00
license="MIT"
homepage="http://micropython.org/"
distfiles="http://github.com/micropython/micropython/archive/v${version}.tar.gz"
2015-11-24 07:42:09 +01:00
checksum=95cc34089a1e40a992065ff9c9b67c121674c3bd6136a50882054fcac27485c2
2015-02-26 17:04:20 +01:00
pre_configure() {
sed -i 's|-Werror||;/^COPT =/d' Makefile
}
do_build() {
2015-08-20 10:31:15 +02:00
make V=1 PYTHON=python3.4 \
CC=$CC CFLAGS_EXTRA="$CPPFLAGS $CFLAGS" \
LDFLAGS_EXTRA="$LDFLAGS" STRIP=echo
}
2015-02-26 17:04:20 +01:00
do_install() {
vbin micropython
vbin ../tools/pip-micropython
vlicense ../LICENSE
2015-02-26 17:04:20 +01:00
}